fixing transasction type and transaction fee

This commit is contained in:
bagusajisaputroo
2025-03-28 11:26:34 +07:00
parent c66dd3ec85
commit f4b14f4d63
6 changed files with 71 additions and 51 deletions

View File

@ -150,9 +150,7 @@ const AddFeeDialog = () => {
e.preventDefault();
for (const key in formField) {
if (
formField[key as keyof typeof formField] === '' ||
formField[key as keyof typeof formField] === 0
) {
formField[key as keyof typeof formField] === '' ) {
setAlert({ show: true, message: 'All fields must be filled out' });
return;
}
@ -163,7 +161,7 @@ const AddFeeDialog = () => {
...formField
});
if (response?.status) {
toast.success('Success Create Transfer Fee');
// toast.success('Success Create Transfer Fee');
reload();
resetForm();
handleAddFeeDialog(false);
@ -225,7 +223,7 @@ const AddFeeDialog = () => {
/>
</div>
<div className="w-full">
<label className="form-label">Minimum Amount <span className="text-red-500">*</span></label>
<label className="form-label">Minimum Amount</label>
<NumericFormat
className="input"
value={formField.minimum_amount}
@ -242,7 +240,7 @@ const AddFeeDialog = () => {
/>
</div>
<div className="w-full">
<label className="form-label">Maximum Amount <span className="text-red-500">*</span></label>
<label className="form-label">Maximum Amount</label>
<NumericFormat
className="input"
value={formField.maximum_amount}
@ -283,7 +281,7 @@ const AddFeeDialog = () => {
/>
</div>
<div className="w-full">
<label className="form-label">Deduct Amount <span className="text-red-500">*</span></label>
<label className="form-label">Deduct Amount</label>
<NumericFormat
className="input"
value={formField.deduct_amount}
@ -300,7 +298,7 @@ const AddFeeDialog = () => {
/>
</div>
<div className="w-full">
<label className="form-label">Deduct Percentage <span className="text-red-500">*</span></label>
<label className="form-label">Deduct Percentage</label>
<NumericFormat
className="input"
value={formField.deduct_percentage}