diff --git a/src/pages/transaction/topup/TransactionTopup.tsx b/src/pages/transaction/topup/TransactionTopup.tsx index 9552360..744abb0 100644 --- a/src/pages/transaction/topup/TransactionTopup.tsx +++ b/src/pages/transaction/topup/TransactionTopup.tsx @@ -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 }