From ce6e316febf9e2c625a634ef9ff245f5f19e14cd Mon Sep 17 00:00:00 2001 From: Uncle Stretch Date: Sat, 7 Nov 2026 15:29:14 +0300 Subject: [PATCH] make bridge-in to be stored in history in any case Signed-off-by: Uncle Stretch --- package.json | 2 +- src/hooks/localstorage/index.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);