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 {