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 => {