Skip to content

Commit f1319f3

Browse files
committed
fix: remove unnecessary cleanup in useEffect hooks
1 parent 5842caa commit f1319f3

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/components/TaskApprovementPanel.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ function TaskApprovementPanel({
9292
);
9393
}
9494
}
95-
return () => confirmed && clearConfirm(false);
9695
}, [confirmed]);
9796

9897
const openResolveTaskConfirmDialog = (choiceString) => coreConfirm(

src/components/groups-management/TaskGroupsSearcher.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ function TaskGroupsSearcher({
7070
if (taskGroupToDelete && confirmed !== null) {
7171
setTaskGroupToDelete(null);
7272
}
73-
return () => confirmed && clearConfirm(false);
7473
}, [confirmed]);
7574

7675
useEffect(() => {

0 commit comments

Comments
 (0)