Skip to content

Commit

Permalink
fix(web): deepscan error
Browse files Browse the repository at this point in the history
  • Loading branch information
NdekoCode committed Nov 6, 2024
1 parent 32032e3 commit 4b40469
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions apps/web/components/pages/team/tasks/DropdownMenuTask.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ const DropdownMenuTask: FC<{ task: ITeamTask }> = ({ task }) => {
const t = useTranslations();

const handleAssignment = useCallback(() => {
if (!memberInfo) return;
if (memberInfo.member?.employee?.user?.id === user?.id) {
memberInfo.unassignTask(task);
} else {
memberInfo.assignTask(task);
if (memberInfo) {
if (memberInfo.member?.employee?.user?.id === user?.id) {
memberInfo.unassignTask(task);
} else {
memberInfo.assignTask(task);
}
}
}, [memberInfo, task]);

Expand Down

0 comments on commit 4b40469

Please sign in to comment.