From 31f7b09a7bca732012058c646c3ecf08fa435c6d Mon Sep 17 00:00:00 2001 From: acolytec3 <17355484+acolytec3@users.noreply.github.com> Date: Wed, 11 Dec 2019 09:36:34 -0500 Subject: [PATCH] Refresh token balances after adding custom token Signed-off-by: Andrey Shovkoplyas --- src/status_im/wallet/core.cljs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/status_im/wallet/core.cljs b/src/status_im/wallet/core.cljs index a68042310e..7c765c0cc7 100644 --- a/src/status_im/wallet/core.cljs +++ b/src/status_im/wallet/core.cljs @@ -334,7 +334,9 @@ (let [chain (ethereum/chain-keyword db) settings (update-toggle-in-settings cofx symbol true) new-settings (assoc-in settings [:wallet :custom-tokens chain address] token)] - (multiaccounts.update/update-settings cofx new-settings {}))) + (fx/merge cofx + (multiaccounts.update/update-settings cofx new-settings {}) + (update-balances nil)))) (fx/defn remove-custom-token [{:keys [db] :as cofx} {:keys [symbol address]}]