added check if rejection reason is not specified
This commit is contained in:
parent
a465104276
commit
fd4633d2a2
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user