From aaa93c37d30d339a89046b8abf2825186dd4a912 Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Fri, 22 Sep 2023 03:09:29 +0530 Subject: [PATCH] UI bug fixes --- index.html | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index fb515ff..375ae37 100644 --- a/index.html +++ b/index.html @@ -147,7 +147,7 @@ function formatAmount(amount = 0, currency = 'inr') { if (!amount) return '0'; - return amount.toLocaleString(currency === 'inr' ? `en-IN` : 'en-US', { currency, maximumFractionDigits: 8 }) + return amount.toLocaleString(undefined, { currency, maximumFractionDigits: 8 }) } // fetch data and return json async function fetchJson(url, options = {}) { @@ -703,10 +703,6 @@ ${incAddress} -
-
token name
-

${token}

-
supply

${supply ? formatAmount(supply, token.toLowerCase() === 'rupee' ? 'inr' : 'usd') : 'Infinite'}

@@ -1013,7 +1009,7 @@

${token}

Supply
-

+

${supply ? formatAmount(supply, token.toLowerCase() === 'rupee' ? 'inr' : 'usd') : 'Infinite'}

Incorporation address