Skip to content

Commit

Permalink
feat: Update state when ledger account updated
Browse files Browse the repository at this point in the history
  • Loading branch information
normanwilde committed Apr 19, 2023
1 parent 9b938ec commit bf96429
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/hooks/useWalletReducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,9 @@ const useWalletReducer = () => {
);
try {
dispatch(addLedgerAcountAction(newLedgerAccountsList));
if (isLedgerAccount && updatedLedgerAccount.id === selectedAccount?.id) {
switchAccount(updatedLedgerAccount);
}
} catch (err) {
return Promise.reject(err);
}
Expand Down

0 comments on commit bf96429

Please sign in to comment.