From 52b4305c6eb7abee1db7b7d623503b4bbea0a57f Mon Sep 17 00:00:00 2001 From: Nick Date: Fri, 28 Jun 2024 02:17:18 +0330 Subject: [PATCH] fix forget account issue --- packages/extension-ui/src/Popup/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/extension-ui/src/Popup/index.tsx b/packages/extension-ui/src/Popup/index.tsx index 453611cf4..33ce9661e 100644 --- a/packages/extension-ui/src/Popup/index.tsx +++ b/packages/extension-ui/src/Popup/index.tsx @@ -162,7 +162,7 @@ export default function Popup(): React.ReactElement { const found = accounts.find(({ address }) => address === _address); if (!found) { - assetsOnChains.balances[_address] = undefined; + delete assetsOnChains.balances[_address]; setStorage(ASSETS_NAME_IN_STORAGE, assetsOnChains, true).catch(console.error); } });