Skip to content

Commit 1d69bcf

Browse files
chore: add , (#10822)
1 parent f901059 commit 1d69bcf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/assets/v2/js/grants/_detail-component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ Vue.component('grant-details', {
619619
const rounded_lifetime_amount = Math.round(amount_received / 1000) * 1000;
620620

621621
vm.grant.rounded_lifetime_amount = (rounded_lifetime_amount > 1000) ?
622-
`~$${rounded_lifetime_amount}` : 'Less than $1,000';
622+
`~$${rounded_lifetime_amount.toLocaleString()}` : 'Less than $1,000';
623623

624624
if (vm.grant.description_rich_edited) {
625625
vm.editor.updateContents(JSON.parse(vm.grant.description_rich));

app/assets/v2/js/grants/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ if (document.getElementById('grants-showcase')) {
372372
const rounded_lifetime_amount = Math.round(amount_received / 1000) * 1000;
373373

374374
item.rounded_lifetime_amount = (rounded_lifetime_amount > 1000) ?
375-
`~$${rounded_lifetime_amount}` : 'Less than $1,000';
375+
`~$${rounded_lifetime_amount.toLocaleString()}` : 'Less than $1,000';
376376

377377
if (!vm.prevouslyLoadedGrants[item.id]) {
378378
vm.grants.push(item);

0 commit comments

Comments
 (0)