Skip to content

Commit

Permalink
fix: load bug when adding Myorep sets
Browse files Browse the repository at this point in the history
  • Loading branch information
WhyAsh5114 committed Feb 1, 2025
1 parent 34dbd52 commit 67cd991
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/utils/workoutUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export function createWorkoutExerciseInProgressFromMesocycleExerciseTemplate(
exercise.changeType = null;
}

if (['Straight', 'MyorepMatch'].includes(exercise.setType)) {
if (['Straight', 'MyorepMatch', 'Myorep'].includes(exercise.setType)) {
newSets.map((set, setIndex) => {
if (setIndex) set.load = newSets[0].load;
});
Expand Down

0 comments on commit 67cd991

Please sign in to comment.