bug #5155 - fixed the bug where every token is unknown in send command

Signed-off-by: Goran Jovic <goranjovic@gmail.com>
This commit is contained in:
Goran Jovic 2018-07-13 08:52:40 +02:00
parent f8c9bec383
commit e9fcba001a
No known key found for this signature in database
GPG Key ID: D429D1A9B2EB8A8E
1 changed files with 2 additions and 2 deletions

View File

@ -15,8 +15,8 @@
;; because balances are only fetched for them. Revisit this decision with regard to battery/network consequences
;; if we were to update all balances.
(defn- allowed-assets [chain account]
(let [visible-token-symbols (get-in account [:settings :wallet :visible-tokens chain])]
(->> (tokens/tokens-for chain)
(let [visible-token-symbols (get-in account [:settings :wallet :visible-tokens (keyword chain)])]
(->> (tokens/tokens-for (keyword chain))
(filter #(not (:nft? %)))
(filter #(contains? visible-token-symbols (:symbol %)))
(map #(vector (-> % :symbol clojure.core/name)