From bbaed49ac031f3c8d5c55f8eba3dd242b7bbb90c Mon Sep 17 00:00:00 2001 From: Aditya Anand M C Date: Wed, 17 Feb 2021 12:09:27 +0530 Subject: [PATCH] ensure is matched appaers only if applicable --- app/assets/v2/js/grants/funding.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/assets/v2/js/grants/funding.js b/app/assets/v2/js/grants/funding.js index 0aa4a081297..52b98ec225e 100644 --- a/app/assets/v2/js/grants/funding.js +++ b/app/assets/v2/js/grants/funding.js @@ -37,7 +37,15 @@ $(document).ready(function() { for (let i = 0; i < allDonations.length; i += 1) { const donation = allDonations[i]; - cart_html += '
  • ' + donation['grant_title'] + ' for ' + donation['grant_donation_amount'] + ' ' + donation['grant_donation_currency'] + ' (+' + donation['grant_donation_clr_match'] + ' DAI match)
  • '; + cart_html += '
  • ' + donation['grant_title'] + ' for ' + donation['grant_donation_amount'] + ' ' + donation['grant_donation_currency']; + if ( + donation.clr_round_num != '' && + donation.is_clr_eligible && + !donation.is_on_team + ) { + cart_html += ' (+' + donation['grant_donation_clr_match'] + ' DAI match)'; + } + cart_html += '
  • '; } cart_html += '
    Here is a handy link for sharing this collection with others.'; $("" + cart_html + '').insertBefore($('#tweetModal span.copy'));