clear form after hit api on disbursement saldo

This commit is contained in:
Wikzyy
2025-04-30 16:23:37 +07:00
parent 2a1308aa8f
commit 8beebdb341

View File

@ -128,6 +128,7 @@ const TransactionDisbursement = () => {
} finally {
setIsSubmitting(false);
setShowConfirmation(false);
ResetForm();
}
};
@ -146,6 +147,12 @@ const TransactionDisbursement = () => {
// TODO: Kirim ke backend atau proses lainnya
};
const ResetForm = () => {
setForm(initialForm);
setAlert({ show: false, message: '' });
setSearchTerm('');
};
const handleCancelSubmit = () => {
setShowConfirmation(false);
};