if in the middle of a pending revocation, remove the banner on metamask payment rejction

This commit is contained in:
Rob Culliton 2018-05-08 15:11:33 -04:00
parent c57a6a1a63
commit d3925a542e
No known key found for this signature in database
GPG Key ID: 6FDEF60B3DC84D94

View File

@ -475,11 +475,13 @@
(send-transaction-callback issue-id))
{:db (assoc-in db [:owner-bounties issue-id :confirming?] true)}
(catch js/Error e
{:db (assoc-in db [:owner-bounties issue-id :confirm-failed?] true)
:dispatch-n [[:payout-confirm-failed issue-id e]
[:set-flash-message
:error
(str "Failed to send transaction" e)]]})))))
(if (empty? (::db/pending-revocations db))
{:db (assoc-in db [:owner-bounties issue-id :confirm-failed?] true)
:dispatch-n [[:payout-confirm-failed issue-id e]
[:set-flash-message
:error
(str "Failed to send transaction" e)]]}
{:dispatch [:remove-pending-revocation issue-id]}))))))
(reg-event-fx
:payout-confirmed