Skip to content

Commit 309f380

Browse files
author
Dushyant Bhalgami
committed
fixed leaerboard scores in integer issue
1 parent 6cae16a commit 309f380

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/submission.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function removeDecimal(num) {
1313
}
1414

1515
function toAcurateFixed(num, decimal) {
16-
const re = new RegExp(`^-?\\d+(?:.\\d{0,${(decimal - 1)}})?`);
16+
const re = new RegExp(`^-?\\d+(?:.\\d{0,${(decimal)}})?`);
1717
return num.toString().match(re)[0];
1818
}
1919

0 commit comments

Comments
 (0)