From c0174c2b228a4a8e39c002112b987dfcbee0b251 Mon Sep 17 00:00:00 2001 From: nicoagostini Date: Tue, 20 May 2025 16:45:49 -0700 Subject: [PATCH] fix/ now assets display the location currency OR CAD as default --- src/views/assets.ejs | 2 +- src/views/partials/assetPreview.ejs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/assets.ejs b/src/views/assets.ejs index 5397a5f..691e64b 100644 --- a/src/views/assets.ejs +++ b/src/views/assets.ejs @@ -19,7 +19,7 @@

Total Value:

- $<%= 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)) %>

diff --git a/src/views/partials/assetPreview.ejs b/src/views/partials/assetPreview.ejs index 4d8c588..13c9996 100644 --- a/src/views/partials/assetPreview.ejs +++ b/src/views/partials/assetPreview.ejs @@ -10,7 +10,7 @@

- $<%= asset.value.toLocaleString(undefined, {minimumFractionDigits: 2, maximumFractionDigits: 2}) %> + <%- new Intl.NumberFormat('en-US', { style: 'currency', currency: geoData.currency ? geoData.currency : 'CAD' }).format(asset.value) %>