added check if rejection reason is not specified

This commit is contained in:
sairaj mote 2022-05-22 18:18:46 +05:30
parent a465104276
commit fd4633d2a2

View File

@ -395,6 +395,8 @@ function declineTopUp() {
if (reason === 'other') {
reason = getRef('top_up__specified_reason').value
}
if (reason.trim() === '')
return notify('Please specify a reason', 'error');
Cashier.rejectRequest(floGlobals.cashierProcessingRequest, reason).then(result => {
console.log(result);
console.info('Rejected cash-to-token request:', vectorClock);