From 5859f754209e7ecba0393586fd35d1e22a21f11f Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Wed, 3 May 2023 00:46:01 +0530 Subject: [PATCH] allowing 8 decimal places for rupee token --- index.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.html b/index.html index cb41817..8603c2b 100644 --- a/index.html +++ b/index.html @@ -144,7 +144,7 @@ function formatAmount(amount = 0, currency = 'inr') { if (!amount) return '0'; - return amount.toLocaleString(currency === 'inr' ? `en-IN` : 'en-US', { currency, maximumFractionDigits: currency === 'inr' ? 2 : 8 }) + return amount.toLocaleString(currency === 'inr' ? `en-IN` : 'en-US', { currency, maximumFractionDigits: 8 }) } // fetch data and return json async function fetchJson(url, options = {}) { @@ -1682,7 +1682,6 @@ } - // THIS TAG CONTAINS CODE REQUIRED FOR THE NAVBAR TO FUNCTION function returnHexNumber(s) { var regExp = /^[-+]?[0-9A-Fa-f]+\.?[0-9A-Fa-f]*?$/; return (typeof s === 'string' && regExp.test(s));