Skip to content

Commit 46b164c

Browse files
committed
fix(frontend): narrow type for set conversion
1 parent f8a6f6f commit 46b164c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

apps/frontend/app/lib/state/workout.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,10 @@ const getExerciseDetails = async (exerciseId: string) => {
123123
type TWorkoutDetails = WorkoutDetailsQuery["workoutDetails"];
124124

125125
export const convertHistorySetToCurrentSet = (
126-
s: TWorkoutDetails["information"]["exercises"][number]["sets"][number],
126+
s: Pick<
127+
TWorkoutDetails["information"]["exercises"][number]["sets"][number],
128+
"statistic" | "lot"
129+
>,
127130
) =>
128131
({
129132
lot: s.lot,

0 commit comments

Comments
 (0)