Merge pull request #38 from JoaquinPar/feature/vehicle-depreciation

feature/vehicle depreciation calculated towards total assets value
This commit is contained in:
Nícolas Agostini authored and GitHub committed 2025-05-21 16:40:15 -07:00
commit 0672981e69
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>