always assume :paid if payout_hash is present

This commit is contained in:
Martin Klepsch 2018-04-06 14:15:36 +02:00 committed by Tetiana Churikova
parent 5d44df7a20
commit e7c8a986d7

View File

@ -128,9 +128,9 @@
(if-let [merged-or-paid? (or (:winner_login bounty)
(:payout_hash bounty))]
(cond
(:payout_hash bounty) :paid
(nil? (:payout_address bounty)) :pending-contributor-address
(nil? (:confirm_hash bounty)) :pending-maintainer-confirmation
(:payout_hash bounty) :paid
:else :merged)
(cond ; not yet merged
(< 1 (count (:claims bounty))) :multiple-claims