Skip to content

Commit

Permalink
fix: reset balance state between change accounts (#783)
Browse files Browse the repository at this point in the history
  • Loading branch information
teebszet authored Jan 29, 2024
1 parent 7ae43a5 commit 4cc5a42
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/app/stores/wallet/reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,15 @@ const walletReducer = (
network: action.network,
accountType: action.accountType,
accountName: action.accountName,
btcBalance: '',
stxBalance: '',
stxAvailableBalance: '',
coinsList: state.coinsList
? state.coinsList.map((coin) => ({ ...coin, balance: '0' }))
: [],
brcCoinsList: state.brcCoinsList
? state.brcCoinsList.map((coin) => ({ ...coin, balance: '0' }))
: [],
};
case StoreEncryptedSeedKey:
return {
Expand Down

0 comments on commit 4cc5a42

Please sign in to comment.