Skip to content

Commit 30c5333

Browse files
author
Dushyant Bhalgami
committed
fix mm leaderbord issue
1 parent 1897d4e commit 30c5333

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

Diff for: __tests__/__snapshots__/index.js.snap

+3
Original file line numberDiff line numberDiff line change
@@ -212,14 +212,17 @@ Object {
212212
"countReset": [Function],
213213
"debug": [Function],
214214
"dir": [Function],
215+
"dirxml": [Function],
215216
"error": [Function],
216217
"group": [Function],
217218
"groupCollapsed": [Function],
218219
"groupEnd": [Function],
219220
"info": [Function],
220221
"log": [Function],
222+
"table": [Function],
221223
"time": [Function],
222224
"timeEnd": [Function],
225+
"timeLog": [Function],
223226
"trace": [Function],
224227
"warn": [Function],
225228
},

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"lint:js": "./node_modules/.bin/eslint --ext .js,.jsx .",
3232
"test": "npm run lint && npm run jest"
3333
},
34-
"version": "0.7.11-8",
34+
"version": "0.7.11-14",
3535
"dependencies": {
3636
"auth0-js": "^6.8.4",
3737
"config": "^3.2.0",

Diff for: src/utils/submission.js

+2-2
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

@@ -24,7 +24,7 @@ function toFixed(num, decimal) {
2424
const result = _.toFinite(toAcurateFixed(num, decimal));
2525
const integerResult = _.toFinite(removeDecimal(num));
2626

27-
if (_.isInteger(integerResult)) {
27+
if (_.isInteger(result)) {
2828
return integerResult;
2929
}
3030
return result;

0 commit comments

Comments
 (0)