[#10699] Balance of custom tokens is not updated until app restart
This commit is contained in:
parent
9ce6fea6d5
commit
cbf125e4b5
|
@ -139,7 +139,8 @@
|
||||||
(reduce (fn [acc [address balances]]
|
(reduce (fn [acc [address balances]]
|
||||||
(let [pos-balances
|
(let [pos-balances
|
||||||
(reduce (fn [acc [token-address token-balance]]
|
(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))
|
(if (or (and (empty? assets) (pos? token-balance))
|
||||||
(and (seq assets) (assets token-symbol)))
|
(and (seq assets) (assets token-symbol)))
|
||||||
(assoc acc token-symbol token-balance)
|
(assoc acc token-symbol token-balance)
|
||||||
|
|
Loading…
Reference in New Issue