diff --git a/src/modules/core/hooks/useStorage.tsx b/src/modules/core/hooks/useStorage.tsx index 27790bf7..0a565a59 100644 --- a/src/modules/core/hooks/useStorage.tsx +++ b/src/modules/core/hooks/useStorage.tsx @@ -34,8 +34,7 @@ function useStorage( // Allow value to be a function so we have same API as useState const valueToStore = (() => { if (value instanceof Function) { - const previousValue = - jsonSaveParse(storage.getItem(key) ?? '') ?? storage.getItemParsed(key, initialState); + const previousValue = storage.getItemParsed(key, initialState); return value(previousValue); }