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}%`}