fix reload balance on request topup

This commit is contained in:
Wikzyy
2025-04-30 17:10:37 +07:00
parent 508aee210c
commit 70a1e9dbd3

View File

@ -60,6 +60,7 @@ const TransactionTopup = () => {
}); });
console.log(response); console.log(response);
if (response?.status == true) { if (response?.status == true) {
await fetchWallets();
toast.success('Success Request Topup'); toast.success('Success Request Topup');
} else { } else {
toast.warning(`${response?.message}`); toast.warning(`${response?.message}`);
@ -71,7 +72,6 @@ const TransactionTopup = () => {
} finally { } finally {
setIsSubmitting(false); setIsSubmitting(false);
setShowConfirmation(false); setShowConfirmation(false);
fetchWallets();
ResetForm(); ResetForm();
} }
}; };