Skip to content

Commit

Permalink
fix(frontend): display items
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnisDa committed Jan 2, 2025
1 parent c3db86b commit c6e6d60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/frontend/app/components/fitness.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,9 @@ export const ExerciseHistory = (props: {
.exhaustive(),
);
const exercise =
workoutDetails.details.information.exercises[props.exerciseIdx];
workoutDetails?.details.information.exercises[props.exerciseIdx];
const { data: exerciseDetails } = useQuery(
getExerciseDetailsQuery(exercise.id),
getExerciseDetailsQuery(exercise?.id || ""),
);
const isInSuperset = props.supersetInformation?.find((s) =>
s.exercises.includes(props.exerciseIdx),
Expand Down

0 comments on commit c6e6d60

Please sign in to comment.