fixed 3961

Signed-off-by: Eric Dvorsak <eric@dvorsak.fr>
This commit is contained in:
Andrey Shovkoplyas 2018-04-27 13:54:57 +03:00 committed by Eric Dvorsak
parent ad5539addd
commit fb92b8174b
No known key found for this signature in database
GPG Key ID: 932AC1CE5F05DE0C
1 changed files with 7 additions and 4 deletions

View File

@ -203,10 +203,13 @@
(if (and error (string? error) (not (string/blank? error))) ;; ignore error here, error will be handled in :transaction-failed (if (and error (string? error) (not (string/blank? error))) ;; ignore error here, error will be handled in :transaction-failed
{:db db'} {:db db'}
(merge (merge
{:db (-> db' {:db (cond-> db'
(assoc-in [:wallet :transactions hash] (prepare-unconfirmed-transaction db now hash id)) (= method constants/web3-send-transaction)
(update-in [:wallet :transactions-unsigned] dissoc id) (assoc-in [:wallet :transactions hash] (prepare-unconfirmed-transaction db now hash id))
(update-in [:wallet :send-transaction] merge clear-send-properties))} true
(update-in [:wallet :transactions-unsigned] dissoc id)
true
(update-in [:wallet :send-transaction] merge clear-send-properties))}
(if modal? (if modal?
(cond-> {:dispatch [:navigate-back]} (cond-> {:dispatch [:navigate-back]}
(= method constants/web3-send-transaction) (= method constants/web3-send-transaction)