diff --git a/package.json b/package.json index b88a84e..c9a3d61 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ghost-dao-interface", "private": true, - "version": "0.8.2", + "version": "0.8.3", "type": "module", "scripts": { "dev": "vite", diff --git a/src/hooks/localstorage/index.jsx b/src/hooks/localstorage/index.jsx index 2b5114d..7db302d 100644 --- a/src/hooks/localstorage/index.jsx +++ b/src/hooks/localstorage/index.jsx @@ -82,7 +82,7 @@ export const LocalStorageProvider = ({ children }) => { const tryStoreInHistory = async (chainId, address, target, txHash, name) => { const historyKey = getStorageKey(chainId, address, HISTORY_PREFIX); const storedHistoryTypes = localStorage.getItem(historyKey); - const historyTypes = storedHistoryTypes ? JSON.parse(storedHistoryTypes) : []; + const historyTypes = storedHistoryTypes ? JSON.parse(storedHistoryTypes) : DEFAULT_HISTORY_TYPES; if (!historyTypes.includes(target)) return; const key = getStorageKey(chainId, address, target);