Skip to content

Commit

Permalink
removed comments and simplified useMemo
Browse files Browse the repository at this point in the history
  • Loading branch information
desperado1802 committed Oct 6, 2023
1 parent edf8261 commit 2fcf77d
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,7 @@ const UserProfileTasks: FC<IUserProfileTasks> = observer(({ profile, content })
const { colors, dark } = useAppTheme()
const { timerStatus } = useTimer()
const tasks = useMemo(() => {
const tasks = content.tasksFiltered
// if (content.tab === "worked" && profile.activeUserTeamTask) {
// tasks = tasks.filter((ts) => {
// return ts.id !== profile.activeUserTeamTask?.id
// })
// }

return tasks
return content.tasksFiltered
}, [content, profile])

return (
Expand Down

0 comments on commit 2fcf77d

Please sign in to comment.