From e9fcba001ad3f29a995f90b3d9bd279230ff77f7 Mon Sep 17 00:00:00 2001 From: Goran Jovic Date: Fri, 13 Jul 2018 08:52:40 +0200 Subject: [PATCH] bug #5155 - fixed the bug where every token is unknown in send command Signed-off-by: Goran Jovic --- src/status_im/chat/events/commands.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/status_im/chat/events/commands.cljs b/src/status_im/chat/events/commands.cljs index 5ec79a3549..918979e6b0 100644 --- a/src/status_im/chat/events/commands.cljs +++ b/src/status_im/chat/events/commands.cljs @@ -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)