From b76095e5997a8f2c4dffb9d6d00de09099559df5 Mon Sep 17 00:00:00 2001 From: Julien Eluard Date: Wed, 10 Jan 2018 17:12:09 +0100 Subject: [PATCH] [BUG#2417] Update balance when sending request from chat --- src/status_im/ui/screens/wallet/send/events.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/status_im/ui/screens/wallet/send/events.cljs b/src/status_im/ui/screens/wallet/send/events.cljs index 71bae88fc2..a33b10c7df 100644 --- a/src/status_im/ui/screens/wallet/send/events.cljs +++ b/src/status_im/ui/screens/wallet/send/events.cljs @@ -119,7 +119,7 @@ (if sending-from-chat? ;;SENDING FROM CHAT {:db (assoc-in new-db [:wallet :send-transaction] sending-db) ; we need to completely reset sending state here - :dispatch [:navigate-to-modal :wallet-send-transaction-modal]} + :dispatch-n [[:update-wallet (map :symbol (tokens/tokens-for (ethereum/network->chain-keyword (:network db))))] [:navigate-to-modal :wallet-send-transaction-modal]]} ;;SEND SCREEN WAITING SIGNAL (let [{:keys [later? password]} (get-in db [:wallet :send-transaction]) new-db' (update-in new-db [:wallet :send-transaction] merge sending-db)] ; just update sending state as we are in wallet flow