Skip to content

Commit dc9aaeb

Browse files
committed
no implicit coersion
1 parent 92aec30 commit dc9aaeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/fields/AxisInterval.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const DAYS_IN_MONTH = 30;
1414
const MONTHS_IN_YEAR = 12; //eslint-disable-line
1515

1616
function twoDecimalsRound(value) {
17-
return +value.toFixed(2);
17+
return Math.round(value * 100) / 100;
1818
}
1919

2020
function getSmallestUnit(milliseconds) {

0 commit comments

Comments
 (0)