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