Skip to content

Commit f61d234

Browse files
chore: show only actionable claims in claim section (#10607)
* chore: show only actionable claims in claim section * Update app/assets/v2/js/grants/matching_funds.js
1 parent d95b0bc commit f61d234

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

app/assets/v2/js/grants/matching_funds.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,11 @@ Vue.mixin({
251251
a => a.claim_tx === null &&
252252
a.grant_payout).length;
253253
},
254+
filterPendingClaims(matches) {
255+
return this.filterMatchingPayout(matches).filter(
256+
match => !match.claim_tx || match.claim_tx == ''
257+
);
258+
},
254259
filterMatchingPayout(matches) {
255260
return matches.filter(match => match.grant_payout);
256261
}

app/grants/templates/grants/matching_funds.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ <h2>Matching Funds</h2>
142142
<!-- check if grant has a match that can be claimed -->
143143
<div v-if="canClaimMatch(grant)">
144144
<!-- map over matches that have an existing payout -->
145-
<div v-for="match in filterMatchingPayout(grant.clr_matches)" :key="match.pk">
145+
<div v-for="match in filterPendingClaims(grant.clr_matches)" :key="match.pk">
146146
{% include './components/ready_claim.html' %}
147147
</div>
148148
</div>

0 commit comments

Comments
 (0)