Skip to content

Commit 406459c

Browse files
committed
Fix code mistake
1 parent 2a02579 commit 406459c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/NumericDisplay/NumericDisplay.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function formatNumber(number, shortForm = true) {
99
const exponent = Math.floor(Math.log10(Math.abs(Math.max(number, 1)))); //exponent component of number
1010
const exponent3 = Math.floor(exponent / 3) * 3; //exponent with multiple of 3 for engineering notation
1111
const prefixes = ["", "K", "M", "B", "T"]; //numeric prefixes
12-
if (Math.abs(number < 1000)) {
12+
if (Math.abs(number) < 1000) {
1313
//if number is less than 1 thousand
1414
return Math.round(number).toString(); //return number rounded to nearest integer
1515
} else {

0 commit comments

Comments
 (0)