Skip to content

Commit

Permalink
Fix checkTaskAssignment api call usage
Browse files Browse the repository at this point in the history
  • Loading branch information
mythilytm committed Oct 31, 2024
1 parent 6cba851 commit b74ee1c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ const ContactInProgressBanners: React.FC<ContactBannersProps> = ({ 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();
Expand Down

0 comments on commit b74ee1c

Please sign in to comment.