From b06838408172db954813fce0d21b2e614353278f Mon Sep 17 00:00:00 2001 From: Badal Khatri Date: Fri, 1 Dec 2023 14:47:47 +0530 Subject: [PATCH] Member Not found isseu --- apps/web/app/hooks/features/useAuthTeamTasks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/app/hooks/features/useAuthTeamTasks.ts b/apps/web/app/hooks/features/useAuthTeamTasks.ts index f3e7fd1e7..c6853703a 100644 --- a/apps/web/app/hooks/features/useAuthTeamTasks.ts +++ b/apps/web/app/hooks/features/useAuthTeamTasks.ts @@ -8,7 +8,7 @@ export function useAuthTeamTasks(user: IUser | undefined) { const tasks = useRecoilValue(tasksByTeamState); const { activeTeam } = useOrganizationTeams(); - const currentMember = activeTeam?.members.find((member) => member.employee?.userId === user?.id); + const currentMember = activeTeam?.members?.find((member) => member.employee?.userId === user?.id); const assignedTasks = useMemo(() => { if (!user) return [];