From bfc543cbc9356e82eb6140bd0c52e2aca3cd86f8 Mon Sep 17 00:00:00 2001 From: Miodec Date: Thu, 13 Oct 2022 21:26:49 +0200 Subject: [PATCH] fixed website freezing for not signed in users --- frontend/src/ts/test/result.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/ts/test/result.ts b/frontend/src/ts/test/result.ts index 84d550918..7ae6cdeef 100644 --- a/frontend/src/ts/test/result.ts +++ b/frontend/src/ts/test/result.ts @@ -402,7 +402,7 @@ export async function updateCrown(): Promise { function updateTags(dontSave: boolean): void { const activeTags: MonkeyTypes.Tag[] = []; - const userTagsCount = DB.getSnapshot().tags?.length ?? 0; + const userTagsCount = DB.getSnapshot()?.tags?.length ?? 0; try { DB.getSnapshot().tags?.forEach((tag) => { if (tag.active === true) {