clear form after hit api on topup request

This commit is contained in:
Wikzyy
2025-04-30 16:26:12 +07:00
parent 8beebdb341
commit b1b0892d4e

View File

@ -75,6 +75,7 @@ const TransactionTopup = () => {
} finally {
setIsSubmitting(false);
setShowConfirmation(false);
ResetForm();
}
};
@ -97,6 +98,11 @@ const TransactionTopup = () => {
setShowConfirmation(false);
};
const ResetForm = () => {
setForm(initialState);
setAlert({ show: false, message: '' });
};
return (
<>
<Helmet>