From 70a1e9dbd333bc76f6d62e277f3667b8d4bdf5d5 Mon Sep 17 00:00:00 2001 From: Wikzyy Date: Wed, 30 Apr 2025 17:10:37 +0700 Subject: [PATCH] fix reload balance on request topup --- 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 5ad6ba6..9136efa 100644 --- a/src/pages/transaction/topup/TransactionTopup.tsx +++ b/src/pages/transaction/topup/TransactionTopup.tsx @@ -60,6 +60,7 @@ const TransactionTopup = () => { }); console.log(response); if (response?.status == true) { + await fetchWallets(); toast.success('Success Request Topup'); } else { toast.warning(`${response?.message}`); @@ -71,7 +72,6 @@ const TransactionTopup = () => { } finally { setIsSubmitting(false); setShowConfirmation(false); - fetchWallets(); ResetForm(); } };