From cc6382bf0aaaa3c633ce3770e028d9cfe76befe6 Mon Sep 17 00:00:00 2001 From: dank074 Date: Sat, 17 Jun 2023 22:18:38 -0500 Subject: [PATCH] fix localstorage-i blame bill for my fuckup --- src/api/utils/GetLocalStorage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/utils/GetLocalStorage.ts b/src/api/utils/GetLocalStorage.ts index 769df6d7..66faf54f 100644 --- a/src/api/utils/GetLocalStorage.ts +++ b/src/api/utils/GetLocalStorage.ts @@ -2,7 +2,7 @@ export const GetLocalStorage = (key: string) => { try { - JSON.parse(window.localStorage.getItem(key)) as T ?? null + return JSON.parse(window.localStorage.getItem(key)) as T ?? null } catch(e) {