mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-20 04:26:28 +08:00
setting default quote length if not defined
This commit is contained in:
parent
ebea7078bd
commit
15f97c339e
1 changed files with 1 additions and 0 deletions
|
@ -188,6 +188,7 @@ export async function getUserResults(): Promise<boolean> {
|
|||
}
|
||||
if (result.numbers === undefined) result.numbers = false;
|
||||
if (result.punctuation === undefined) result.punctuation = false;
|
||||
if (result.quoteLength === undefined) result.quoteLength = -1;
|
||||
});
|
||||
dbSnapshot.results = results?.sort((a, b) => b.timestamp - a.timestamp);
|
||||
return true;
|
||||
|
|
Loading…
Add table
Reference in a new issue