diff --git a/src/cljs/commiteth/handlers.cljs b/src/cljs/commiteth/handlers.cljs index c105b53..a0fcc4b 100644 --- a/src/cljs/commiteth/handlers.cljs +++ b/src/cljs/commiteth/handlers.cljs @@ -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