fixing validtion
This commit is contained in:
@ -21,7 +21,7 @@ const TransactionTopup = () => {
|
||||
e.preventDefault();
|
||||
console.log('Submitted Data:', form);
|
||||
|
||||
if (form.pin == '' || form.topupAmount) {
|
||||
if (form.pin == '' || form.topupAmount == '') {
|
||||
toast.warning('Please fill in all required fields.')
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user