make sure claim count only counts open PRs

This commit is contained in:
Martin Klepsch 2018-04-26 17:16:04 +02:00 committed by Tetiana Churikova
parent a0e9569d33
commit 2330aa4fd0
1 changed files with 2 additions and 2 deletions

View File

@ -153,7 +153,7 @@
[:p "Here you will see the claims waiting to be merged"]]
(into [:div]
(for [bounty bounties
:let [claims (:claims bounty)]]
:let [claims (filter bnt/open? (:claims bounty))]]
^{:key (:issue-id bounty)}
[:div.mb3.shadow-6
[:div.pa4.nb2.bg-white.br3.br--top
@ -162,7 +162,7 @@
[:span.f6.gray (if (second claims)
(str "Current Claims (" (count claims) ")")
"Current Claim")]
(for [[idx claim] (zipmap (range) (filter bnt/open? claims))]
(for [[idx claim] (zipmap (range) claims)]
^{:key (:pr_id claim)}
[:div
{:class (when (> idx 0) "bt b--light-gray pt2")}