Skip to content

Commit

Permalink
Merge pull request #1583 from ever-co/bug/profile-screen-worked-tab
Browse files Browse the repository at this point in the history
fixed: "last 24 hours" active task not updating timer button when tim…
  • Loading branch information
evereq authored Oct 18, 2023
2 parents 2d13575 + 052f2f5 commit 3e451d9
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,15 @@ import { GLOBAL_STYLE as GS } from "../../../../../assets/ts/styles"
import { observer } from "mobx-react-lite"
import { useTimer } from "../../../../services/hooks/useTimer"
import WorkedOnTaskHours from "../../../../components/WorkedDayHours"
import { useStores } from "../../../../models"
interface IUserProfileTasks {
profile: IUserProfile
content: ITaskFilter
}
const UserProfileTasks: FC<IUserProfileTasks> = observer(({ profile, content }) => {
const {
TaskStore: { activeTaskId },
} = useStores()
const { colors, dark } = useAppTheme()
const { timerStatus } = useTimer()
const tasks = useMemo(() => {
Expand Down Expand Up @@ -120,7 +124,7 @@ const UserProfileTasks: FC<IUserProfileTasks> = observer(({ profile, content })
task={task}
isAssigned={true}
isAuthUser={profile.isAuthUser}
activeAuthTask={false}
activeAuthTask={activeTaskId === task?.id}
profile={profile}
/>
</View>
Expand Down

0 comments on commit 3e451d9

Please sign in to comment.