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

__tests__/__snapshots__/index.js.snap

Lines changed: 3 additions & 0 deletions
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
},

package.json

Lines changed: 1 addition & 1 deletion
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",

src/utils/submission.js

Lines changed: 2 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy