mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-04 13:01:10 +08:00
checking if language is null
This commit is contained in:
parent
a0ad5cf810
commit
4df3d60bf1
1 changed files with 2 additions and 1 deletions
|
@ -129,7 +129,8 @@ export async function getUserResults() {
|
|||
if (result.lazyMode === undefined) result.lazyMode = false;
|
||||
if (result.difficulty === undefined) result.difficulty = "normal";
|
||||
if (result.funbox === undefined) result.funbox = "none";
|
||||
if (result.language === undefined) result.language = "english";
|
||||
if (result.language === undefined || result.language === null)
|
||||
result.language = "english";
|
||||
if (result.numbers === undefined) result.numbers = false;
|
||||
if (result.punctuation === undefined) result.punctuation = false;
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue