From 13bf690d44a4ea5f6d90d057c881e9e99c554e0b Mon Sep 17 00:00:00 2001 From: Miodec Date: Sun, 27 Feb 2022 20:13:58 +0100 Subject: [PATCH] fixed psa exception --- frontend/src/scripts/elements/psa.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/scripts/elements/psa.ts b/frontend/src/scripts/elements/psa.ts index 785c7aaae..ac92a03ad 100644 --- a/frontend/src/scripts/elements/psa.ts +++ b/frontend/src/scripts/elements/psa.ts @@ -6,7 +6,7 @@ function clearMemory(): void { } function getMemory(): string[] { - return JSON.parse(window.localStorage.getItem("confirmedPSAs") ?? "") ?? []; + return JSON.parse(window.localStorage.getItem("confirmedPSAs") ?? "[]") ?? []; } function setMemory(id: string): void {