Skip to content

Commit

Permalink
fix: balances in network preferences after removing account (#20139)
Browse files Browse the repository at this point in the history
fix: balances in network preferences after removing account (#20139)
  • Loading branch information
OmarBasem committed May 23, 2024
1 parent 2ffdeb1 commit d2fb6c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/status_im/contexts/wallet/account/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
(let [{:keys [name color formatted-balance
watch-only?]} (rf/sub [:wallet/current-viewing-account])
customization-color (rf/sub [:profile/customization-color])]
(rn/use-unmount #(rf/dispatch [:wallet/close-account-page]))
[rn/view {:style {:flex 1}}
[account-switcher/view
{:type :wallet-networks
Expand Down
3 changes: 2 additions & 1 deletion src/status_im/contexts/wallet/events.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@
(rf/reg-event-fx
:wallet/remove-account-success
(fn [_ [toast-message _]]
{:fx [[:dispatch [:wallet/get-accounts]]
{:fx [[:dispatch [:wallet/clean-current-viewing-account]]
[:dispatch [:wallet/get-accounts]]
[:dispatch [:wallet/get-keypairs]]
[:dispatch-later
{:ms 100
Expand Down

0 comments on commit d2fb6c7

Please sign in to comment.