fix: balances in network preferences after removing account (#20139)

fix: balances in network preferences after removing account (#20139)
This commit is contained in:
Omar Basem 2024-05-23 17:52:14 +04:00 committed by GitHub
parent 2ffdeb1fa2
commit d2fb6c7ee0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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