aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--frontend/src/ts/db.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/frontend/src/ts/db.ts b/frontend/src/ts/db.ts
index ff437e07f..8accd57c2 100644
--- a/frontend/src/ts/db.ts
+++ b/frontend/src/ts/db.ts
@@ -372,6 +372,9 @@ export async function getUserResults(offset?: number): Promise<boolean> {
return false;
}
+ //another check in case user logs out while waiting for response
+ if (!isAuthenticated()) return false;
+
const results: SnapshotResult<Mode>[] = response.body.data.map((result) => {
if (result.bailedOut === undefined) result.bailedOut = false;
if (result.blindMode === undefined) result.blindMode = false;