diff --git a/index.html b/index.html index c7e5c40..625d9c6 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.toFixed(2)).split('.') + const [beforeDecimal, afterDecimal] = formatAmount(balance).split('₹')[1].split('.') getRef('rupee_balance').innerHTML = `${beforeDecimal}.${afterDecimal}` }) floBlockchainAPI.getBalance(myFloID).then(balance => { diff --git a/scripts/fn_ui.js b/scripts/fn_ui.js index 21af97f..c584c49 100644 --- a/scripts/fn_ui.js +++ b/scripts/fn_ui.js @@ -431,7 +431,6 @@ const render = { }, cashierRequestCard(details) { const { time, senderID, message: { mode, amount = 0 }, note, tag, vectorClock } = details; - console.log(details); const clone = getRef('cashier_request_template').content.cloneNode(true).firstElementChild; clone.id = vectorClock; const status = tag || note; //status tag for completed, note for rejected