diff --git a/src/utils/storage/index.js b/src/utils/storage/index.js index 8feff3bd..815ffbeb 100644 --- a/src/utils/storage/index.js +++ b/src/utils/storage/index.js @@ -9,11 +9,7 @@ export const storage = new ImmortalStorage(stores) export const load = async (key: string): Promise<*> => { try { const serializedState = await storage.get(key) - if (serializedState === null) { - return undefined - } - - if (serializedState === undefined) { + if (serializedState === null || serializedState === undefined) { return undefined }