mirror of
https://github.com/status-im/open-bounty.git
synced 2025-02-17 03:47:58 +00:00
if in the middle of a pending revocation, remove the banner on metamask payment rejction
This commit is contained in:
parent
c57a6a1a63
commit
d3925a542e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user