[BUG#2417] Update balance when sending request from chat

This commit is contained in:
Julien Eluard 2018-01-10 17:12:09 +01:00 committed by Oskar Thoren
parent 2dd25646ca
commit b76095e599
No known key found for this signature in database
GPG Key ID: 5128AB0637CD85AF
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@
(if sending-from-chat? (if sending-from-chat?
;;SENDING FROM CHAT ;;SENDING FROM CHAT
{:db (assoc-in new-db [:wallet :send-transaction] sending-db) ; we need to completely reset sending state here {: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 ;;SEND SCREEN WAITING SIGNAL
(let [{:keys [later? password]} (get-in db [:wallet :send-transaction]) (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 new-db' (update-in new-db [:wallet :send-transaction] merge sending-db)] ; just update sending state as we are in wallet flow