minor UI tweaks

This commit is contained in:
sairaj mote 2022-05-13 19:34:13 +05:30
parent 7907a0a389
commit 7a1c95ec09
2 changed files with 1 additions and 2 deletions

View File

@ -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 = `<span><b>${beforeDecimal}</b></span>.<span>${afterDecimal}</span>`
})
floBlockchainAPI.getBalance(myFloID).then(balance => {

View File

@ -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