From fb92b8174b2c435be1c85411e682453472317df7 Mon Sep 17 00:00:00 2001 From: Andrey Shovkoplyas Date: Fri, 27 Apr 2018 13:54:57 +0300 Subject: [PATCH] fixed 3961 Signed-off-by: Eric Dvorsak --- src/status_im/ui/screens/wallet/send/events.cljs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/status_im/ui/screens/wallet/send/events.cljs b/src/status_im/ui/screens/wallet/send/events.cljs index ca31d6cbcd..f568cfe3f9 100644 --- a/src/status_im/ui/screens/wallet/send/events.cljs +++ b/src/status_im/ui/screens/wallet/send/events.cljs @@ -203,10 +203,13 @@ (if (and error (string? error) (not (string/blank? error))) ;; ignore error here, error will be handled in :transaction-failed {:db db'} (merge - {:db (-> db' - (assoc-in [:wallet :transactions hash] (prepare-unconfirmed-transaction db now hash id)) - (update-in [:wallet :transactions-unsigned] dissoc id) - (update-in [:wallet :send-transaction] merge clear-send-properties))} + {:db (cond-> db' + (= method constants/web3-send-transaction) + (assoc-in [:wallet :transactions hash] (prepare-unconfirmed-transaction db now hash id)) + true + (update-in [:wallet :transactions-unsigned] dissoc id) + true + (update-in [:wallet :send-transaction] merge clear-send-properties))} (if modal? (cond-> {:dispatch [:navigate-back]} (= method constants/web3-send-transaction)