From 7a1c95ec0912c6a2f58cce9ea35b622710e1fe49 Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Fri, 13 May 2022 19:34:13 +0530 Subject: [PATCH] minor UI tweaks --- index.html | 2 +- scripts/fn_ui.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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