fix/ now assets display the location currency OR CAD as default

This commit is contained in:
nicoagostini committed 2025-05-20 16:45:49 -07:00
1 parent 08397a1c89
commit c0174c2b22
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -19,7 +19,7 @@
<h1 class="text-2xl font-bold tracking-tight leading-none">Total Value:</h1> <h1 class="text-2xl font-bold tracking-tight leading-none">Total Value:</h1>
<h1 class="text-xl font-medium tracking-tight leading-none"> <h1 class="text-xl font-medium tracking-tight leading-none">
<!-- sum of assets array values and formated as proper dollar amount --> <!-- sum of assets array values and formated as proper dollar amount -->
$<%= assets.reduce((total, e) => total + e.value, 0).toLocaleString(undefined, {minimumFractionDigits: 2, maximumFractionDigits: 2}) %> <%- new Intl.NumberFormat('en-US', { style: 'currency', currency: geoData.currency ? geoData.currency : 'CAD' }).format(assets.reduce((total, e) => total + e.value, 0)) %>
</h1> </h1>
</div> </div>
</div> </div>
+1 -1
View File
@@ -10,7 +10,7 @@
</div> </div>
<div> <div>
<h3><strong> <h3><strong>
$<%= asset.value.toLocaleString(undefined, {minimumFractionDigits: 2, maximumFractionDigits: 2}) %> <%- new Intl.NumberFormat('en-US', { style: 'currency', currency: geoData.currency ? geoData.currency : 'CAD' }).format(asset.value) %>
</strong></h3> </strong></h3>
</div> </div>
</div> </div>