From cbf125e4b59e6ee872d8861b205e4b4da321cf6c Mon Sep 17 00:00:00 2001 From: Andrey Shovkoplyas Date: Tue, 16 Jun 2020 16:19:04 +0200 Subject: [PATCH] [#10699] Balance of custom tokens is not updated until app restart --- src/status_im/wallet/core.cljs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/status_im/wallet/core.cljs b/src/status_im/wallet/core.cljs index a4392a8df7..e3e6629d93 100644 --- a/src/status_im/wallet/core.cljs +++ b/src/status_im/wallet/core.cljs @@ -139,7 +139,8 @@ (reduce (fn [acc [address balances]] (let [pos-balances (reduce (fn [acc [token-address token-balance]] - (let [token-symbol (get tokens (name token-address))] + (let [token-symbol (or (get tokens (name token-address)) + (get tokens (eip55/address->checksum (name token-address))))] (if (or (and (empty? assets) (pos? token-balance)) (and (seq assets) (assets token-symbol))) (assoc acc token-symbol token-balance)