mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-18 03:26:07 +08:00
added error correction
This commit is contained in:
parent
b1705cac6b
commit
ac1601bfdd
1 changed files with 2 additions and 1 deletions
|
@ -114,7 +114,8 @@ module.exports = {
|
|||
//updating lbpersonalbests object
|
||||
//verify structure first
|
||||
if (lbObj[mode] === undefined) lbObj[mode] = {};
|
||||
if (lbObj[mode][mode2] === undefined) lbObj[mode][mode2] = {};
|
||||
if (lbObj[mode][mode2] === undefined || Array.isArray(lbObj[mode][mode2]))
|
||||
lbObj[mode][mode2] = {};
|
||||
|
||||
let bestForEveryLanguage = {};
|
||||
if (obj?.[mode]?.[mode2]) {
|
||||
|
|
Loading…
Add table
Reference in a new issue