Skip to content

Commit

Permalink
fix forget account issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick-1979 committed Jun 27, 2024
1 parent bd21960 commit 52b4305
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/extension-ui/src/Popup/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
});
Expand Down

0 comments on commit 52b4305

Please sign in to comment.