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) {