fix reject
This commit is contained in:
@ -180,6 +180,8 @@ const DetailMember = ({ showAddDialog, setShowAddDialog, handleSubmit, initialDa
|
|||||||
}
|
}
|
||||||
|
|
||||||
const onReject = () => {
|
const onReject = () => {
|
||||||
|
if (formData.destinationGroup === "Premium" && !formData.approval_description_premium) return toast.warning(`Approval Premium Description needed!`)
|
||||||
|
if (formData.destinationGroup === "Agent" && !formData.approval_description_premium) return toast.warning(`Approval Agent Description needed!`)
|
||||||
handleReject(formData);
|
handleReject(formData);
|
||||||
handleClose();
|
handleClose();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user