mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-26 15:54:35 +08:00
optional
This commit is contained in:
parent
01fedf40ee
commit
46640e1408
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ export async function getUserResults(): Promise<boolean> {
|
|||
if (result.numbers === undefined) result.numbers = false;
|
||||
if (result.punctuation === undefined) result.punctuation = false;
|
||||
});
|
||||
dbSnapshot.results = results.sort((a, b) => b.timestamp - a.timestamp);
|
||||
dbSnapshot.results = results?.sort((a, b) => b.timestamp - a.timestamp);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue