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 4b40469 commit ccaef5b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions apps/web/components/pages/team/tasks/DropdownMenuTask.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@ const DropdownMenuTask: FC<{ task: ITeamTask }> = ({ task }) => {
const t = useTranslations();

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

Expand Down

0 comments on commit ccaef5b

Please # to comment.