Skip to content

Commit

Permalink
fix(frontend): narrow type for set conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnisDa committed Jul 2, 2024
1 parent f8a6f6f commit 46b164c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/frontend/app/lib/state/workout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,10 @@ const getExerciseDetails = async (exerciseId: string) => {
type TWorkoutDetails = WorkoutDetailsQuery["workoutDetails"];

export const convertHistorySetToCurrentSet = (
s: TWorkoutDetails["information"]["exercises"][number]["sets"][number],
s: Pick<
TWorkoutDetails["information"]["exercises"][number]["sets"][number],
"statistic" | "lot"
>,
) =>
({
lot: s.lot,
Expand Down

0 comments on commit 46b164c

Please sign in to comment.