File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
grants/templates/grants/components Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -367,6 +367,13 @@ if (document.getElementById('grants-showcase')) {
367
367
}
368
368
369
369
getGrants . grants . forEach ( function ( item ) {
370
+
371
+ const amount_received = Number ( item . amount_received . replace ( ',' , '' ) ) ;
372
+ const rounded_lifetime_amount = Math . round ( amount_received / 1000 ) * 1000 ;
373
+
374
+ item . rounded_lifetime_amount = ( rounded_lifetime_amount > 1000 ) ?
375
+ `~$${ rounded_lifetime_amount } ` : 'Less than $1,000' ;
376
+
370
377
if ( ! vm . prevouslyLoadedGrants [ item . id ] ) {
371
378
vm . grants . push ( item ) ;
372
379
vm . previouslyLoadedGrants [ item . id ] = item ;
Original file line number Diff line number Diff line change @@ -243,10 +243,10 @@ <h2 class="font-subheader">
243
243
< div class ="col " v-else >
244
244
<!-- not on a round -->
245
245
< p class ="text-black h4 gc-font-base ">
246
- $ [[grant.amount_received || 0 | round | formatNumber ]]
246
+ [[grant.rounded_lifetime_amount ]]
247
247
</ p >
248
248
< p >
249
- total raised
249
+ Estimated lifetime funding received
250
250
</ p >
251
251
</ div >
252
252
< div class ="col " v-if ="grant.clr_round_num ">
You can’t perform that action at this time.
0 commit comments