Fix abbreviate decimal places

This commit is contained in:
rijkvanzanten
2021-06-24 19:00:38 -04:00
parent 740faf143a
commit 2868be55af

View File

@@ -23,7 +23,7 @@ export function abbreviateNumber(
i++;
}
stringValue = number + units[i];
stringValue = number.toFixed(decimalPlaces) + units[i];
break;
}