[wallet #11898] Fix disappearing tokens after adding a new account
This commit is contained in:
parent
31ba933917
commit
4129ca1597
|
@ -27,7 +27,8 @@
|
||||||
status-im.wallet.recipient.core
|
status-im.wallet.recipient.core
|
||||||
[status-im.ui.screens.wallet.signing-phrase.views :as signing-phrase]
|
[status-im.ui.screens.wallet.signing-phrase.views :as signing-phrase]
|
||||||
[status-im.async-storage.core :as async-storage]
|
[status-im.async-storage.core :as async-storage]
|
||||||
[status-im.popover.core :as popover.core]))
|
[status-im.popover.core :as popover.core]
|
||||||
|
[clojure.set :as clojure.set]))
|
||||||
|
|
||||||
(defn get-balance
|
(defn get-balance
|
||||||
[{:keys [address on-success on-error]}]
|
[{:keys [address on-success on-error]}]
|
||||||
|
@ -326,9 +327,8 @@
|
||||||
(flatten (map keys (vals balances))))]
|
(flatten (map keys (vals balances))))]
|
||||||
(fx/merge cofx
|
(fx/merge cofx
|
||||||
(multiaccounts.update/multiaccount-update
|
(multiaccounts.update/multiaccount-update
|
||||||
:wallet/visible-tokens (assoc visible-tokens
|
:wallet/visible-tokens
|
||||||
chain
|
(update visible-tokens chain clojure.set/union chain-visible-tokens)
|
||||||
chain-visible-tokens)
|
|
||||||
{})
|
{})
|
||||||
(update-tokens-balances balances)
|
(update-tokens-balances balances)
|
||||||
(prices/update-prices))))
|
(prices/update-prices))))
|
||||||
|
|
Loading…
Reference in New Issue