diff --git a/index.html b/index.html
index 625d9c6..d4ffc43 100644
--- a/index.html
+++ b/index.html
@@ -1097,7 +1097,7 @@
console.log(`Welcome ${myFloID}`);
document.querySelectorAll('.logged-in-user-id').forEach(elem => elem.value = myFloID);
floGlobals.isSubAdmin = floGlobals.subAdmins.includes(myFloID)
- tokenAPI.getBalance(myFloID).then(balance => {
+ tokenAPI.getBalance(myFloID).then((balance = 0) => {
const [beforeDecimal, afterDecimal] = formatAmount(balance).split('₹')[1].split('.')
getRef('rupee_balance').innerHTML = `${beforeDecimal}.${afterDecimal}`
})
diff --git a/scripts/fn_ui.js b/scripts/fn_ui.js
index c584c49..8919760 100644
--- a/scripts/fn_ui.js
+++ b/scripts/fn_ui.js
@@ -382,7 +382,7 @@ function getFloIdTitle(floID) {
function formatAmount(amount = 0) {
if (!amount)
- return '0';
+ return '₹0.00';
return amount.toLocaleString(`en-IN`, { style: 'currency', currency: 'INR' })
}