fixing validtion

This commit is contained in:
Narul Hidayah
2025-04-18 15:12:44 +07:00
parent b93dfd1bfd
commit bac32d12b3

View File

@ -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
}