This commit is contained in:
Miodec 2022-02-27 18:40:29 +01:00
parent 01fedf40ee
commit 46640e1408

View file

@ -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;
}
}