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,9 +203,12 @@
(if (and error (string? error) (not (string/blank? error))) ;; ignore error here, error will be handled in :transaction-failed
{:db db'}
(merge
{:db (-> db'
{: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]}