[wallet #11898] Fix disappearing tokens after adding a new account

This commit is contained in:
Roman Volosovskyi 2021-04-13 16:33:34 +03:00
parent 31ba933917
commit 4129ca1597
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
1 changed files with 4 additions and 4 deletions

View File

@ -27,7 +27,8 @@
status-im.wallet.recipient.core
[status-im.ui.screens.wallet.signing-phrase.views :as signing-phrase]
[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
[{:keys [address on-success on-error]}]
@ -326,9 +327,8 @@
(flatten (map keys (vals balances))))]
(fx/merge cofx
(multiaccounts.update/multiaccount-update
:wallet/visible-tokens (assoc visible-tokens
chain
chain-visible-tokens)
:wallet/visible-tokens
(update visible-tokens chain clojure.set/union chain-visible-tokens)
{})
(update-tokens-balances balances)
(prices/update-prices))))