From 2de8b9023e71941fc3a8addaa84f0212c613385a Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Fri, 13 May 2022 16:08:32 +0530 Subject: [PATCH] minor UI fix --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 7d2c58a..1c3502e 100644 --- a/index.html +++ b/index.html @@ -1098,7 +1098,7 @@ document.querySelectorAll('.logged-in-user-id').forEach(elem => elem.value = myFloID); floGlobals.isSubAdmin = floGlobals.subAdmins.includes(myFloID) tokenAPI.getBalance(myFloID).then(balance => { - const [beforeDecimal, afterDecimal = '00'] = String(balance).split('.') + const [beforeDecimal, afterDecimal = '00'] = String(balance.toFixed(2)).split('.') getRef('rupee_balance').innerHTML = `${beforeDecimal}.${afterDecimal}` }) floBlockchainAPI.getBalance(myFloID).then(balance => {