From bac32d12b32dbfa02a83ab7d03559f5ec30b5bad Mon Sep 17 00:00:00 2001 From: Narul Hidayah Date: Fri, 18 Apr 2025 15:12:44 +0700 Subject: [PATCH] fixing validtion --- src/pages/transaction/topup/TransactionTopup.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }