Skip to content

Commit

Permalink
Merge pull request #53 from developit/patch-1
Browse files Browse the repository at this point in the history
Fix crash when formatting null percentChange values
  • Loading branch information
andrewiggins authored Jun 1, 2022
2 parents f4bb8fe + bece58a commit 9b1b80f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/tachometer.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ const runtimeConfidenceIntervalDimension = {
* @returns {string}
*/
function formatConfidenceInterval(ci, format) {
if (ci.low == null) return `∞ - ∞`;
return `${format(ci.low)} - ${format(ci.high)}`;
}

Expand Down

0 comments on commit 9b1b80f

Please sign in to comment.