clear form after hit api on topup request
This commit is contained in:
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user