fix: balances in network preferences after removing account (#20139)
fix: balances in network preferences after removing account (#20139)
This commit is contained in:
parent
2ffdeb1fa2
commit
d2fb6c7ee0
|
@ -28,6 +28,7 @@
|
||||||
(let [{:keys [name color formatted-balance
|
(let [{:keys [name color formatted-balance
|
||||||
watch-only?]} (rf/sub [:wallet/current-viewing-account])
|
watch-only?]} (rf/sub [:wallet/current-viewing-account])
|
||||||
customization-color (rf/sub [:profile/customization-color])]
|
customization-color (rf/sub [:profile/customization-color])]
|
||||||
|
(rn/use-unmount #(rf/dispatch [:wallet/close-account-page]))
|
||||||
[rn/view {:style {:flex 1}}
|
[rn/view {:style {:flex 1}}
|
||||||
[account-switcher/view
|
[account-switcher/view
|
||||||
{:type :wallet-networks
|
{:type :wallet-networks
|
||||||
|
|
|
@ -102,7 +102,8 @@
|
||||||
(rf/reg-event-fx
|
(rf/reg-event-fx
|
||||||
:wallet/remove-account-success
|
:wallet/remove-account-success
|
||||||
(fn [_ [toast-message _]]
|
(fn [_ [toast-message _]]
|
||||||
{:fx [[:dispatch [:wallet/get-accounts]]
|
{:fx [[:dispatch [:wallet/clean-current-viewing-account]]
|
||||||
|
[:dispatch [:wallet/get-accounts]]
|
||||||
[:dispatch [:wallet/get-keypairs]]
|
[:dispatch [:wallet/get-keypairs]]
|
||||||
[:dispatch-later
|
[:dispatch-later
|
||||||
{:ms 100
|
{:ms 100
|
||||||
|
|
Loading…
Reference in New Issue