make sure claim count only counts open PRs

This commit is contained in:
Martin Klepsch 2018-04-26 17:16:04 +02:00
parent bd0ecec1ce
commit 75b331d0c4
No known key found for this signature in database
GPG Key ID: 1A35E702AD48A9F6
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")}