diff --git a/plugin-hrm-form/src/components/contact/ContactInProgressBanners.tsx b/plugin-hrm-form/src/components/contact/ContactInProgressBanners.tsx index d90ce9420..f2a6971b5 100644 --- a/plugin-hrm-form/src/components/contact/ContactInProgressBanners.tsx +++ b/plugin-hrm-form/src/components/contact/ContactInProgressBanners.tsx @@ -74,9 +74,9 @@ const ContactInProgressBanners: React.FC = ({ savedContact, }; const handleSaveAndEnd = async () => { - const isTaskAssigned = await checkTaskAssignment(savedContact.taskId); + const { isAssigned } = await checkTaskAssignment(savedContact.taskId); - if (isTaskAssigned === true) { + if (isAssigned === true) { setIsDialogOpen(true); } else { await updateAndSaveContact();