make sure we find PR that has been merged

This commit is contained in:
Martin Klepsch 2018-04-24 10:15:41 +02:00 committed by Tetiana Churikova
parent 801c9a8206
commit 3706954703
1 changed files with 3 additions and 2 deletions

View File

@ -158,8 +158,9 @@
;; Since the resulting payout is the same we can probably
;; ignore this edge case for a first version
:let [winning-claim (->> (:claims bounty)
(filter #(= (:user_login %)
(:winner_login bounty)))
(filter #(and (bnt/merged? %)
(= (:user_login %)
(:winner_login bounty))))
util/assert-first)]]
^{:key (:issue-id bounty)}
[:div.mb3.br3.shadow-6.bg-white