fix No second Wallet screen when send two Tx one after another in Dapps

This commit is contained in:
Roman Volosovskyi 2019-02-14 22:28:36 +02:00
parent 19fc26c1c2
commit e9bc937f9a
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
1 changed files with 4 additions and 1 deletions

View File

@ -133,7 +133,10 @@
{:keys [payload message-id] :as queued-transaction} (last transactions-queue)
{:keys [method params id]} payload
db' (update-in db [:wallet :transactions-queue] drop-last)]
(when (and (not (= :wallet-transaction-sent (:view-id db))) (not (:id send-transaction)) queued-transaction)
(when (and (not (contains? #{:wallet-transaction-sent
:wallet-transaction-sent-modal}
(:view-id db)))
(not (:id send-transaction)) queued-transaction)
(cond
;;SEND TRANSACTION