Minor UX bug fix

This commit is contained in:
sairaj mote 2022-04-15 16:05:49 +05:30
parent f536bc53ef
commit 343a141be5

View File

@ -6,6 +6,8 @@ userUI.requestTokenFromCashier = function () {
if (!cashier)
return alert("No cashier online");
let amount = parseFloat(getRef('request_cashier_amount').value.trim());
if (!amount)
return alert("Enter amount");
//get UPI txid from user
let upiTxID = prompt(`Send Rs. ${amount} to ${cashierUPI[cashier]} and enter UPI txid`);
if (!upiTxID)
@ -21,6 +23,8 @@ userUI.withdrawCashFromCashier = function () {
if (!cashier)
return alert("No cashier online");
let amount = parseFloat(getRef('request_cashier_amount').value.trim());
if (!amount)
return alert("Enter amount");
//get confirmation from user
let upiID = prompt(`${amount} ${floGlobals.currency}# will be sent to ${cashier}. Enter UPI ID`);
if (!upiID)