From d0bd4c97fed0c021593ce40146502ba30627787d Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Sat, 14 Jan 2023 00:52:03 +0530 Subject: [PATCH] Bug fix --- assets/js/index.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/assets/js/index.js b/assets/js/index.js index a252ca1..398535f 100644 --- a/assets/js/index.js +++ b/assets/js/index.js @@ -373,7 +373,7 @@ const siteMap = [ ]; function formatAmount(amount, currency = 'USD') { - return amount.toLocaleString(currency === 'USD'? 'en-US': 'en-IN', { style: 'currency', currency: currency }); + return amount.toLocaleString(currency === 'USD'? 'en-US': 'en-IN', { style: 'currency', currency }); } @@ -404,7 +404,8 @@ const render = { `; }, - bobFundRow(obj) { + bobFundRow(obj) { + console.log(obj); const { invested, floId, currentValue, timeElapsed, gain } = obj; return html`
@@ -419,7 +420,7 @@ const render = {

Current value

-

${formatAmount(currentValue)}

+

${formatAmount(currentValue, 'INR')}

${`${gain}%`}