feature/vehicle depreciation calculated towards total assets value

This commit is contained in:
nicoagostini committed 2025-05-21 16:39:19 -07:00
1 parent b12d4bebe1
commit 5b147d4f46
4 files changed
+37 -6

No files matched your search

+1 -1
View File
@@ -19,7 +19,7 @@
<h1 class="text-lg font-medium">Total Value:</h1>
<h1 class="text-lg font-medium">
<!-- sum of assets array values and formated as proper dollar amount -->
<%- new Intl.NumberFormat('en-US', { style: 'currency', currency: geoData.currency ? geoData.currency : 'CAD' }).format(assets.reduce((total, e) => total + e.value, 0)) %>
<%- new Intl.NumberFormat('en-US', { style: 'currency', currency: geoData.currency ? geoData.currency : 'CAD' }).format(totalUserAssetValue) %>
</h1>
</div>
</div>