Skip to content

Commit

Permalink
Merge pull request #177 from WhyAsh5114/175-set-data-bug
Browse files Browse the repository at this point in the history
Set data bugfix
  • Loading branch information
WhyAsh5114 authored Feb 1, 2025
2 parents f5f8982 + 67cd991 commit 0968e60
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
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
7 changes: 6 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@
"skipLibCheck": true,
"sourceMap": true,
"strict": true,
"moduleResolution": "bundler"
"moduleResolution": "bundler",
"baseUrl": ".",
"paths": {
"$lib": ["src/lib"],
"$lib/*": ["src/lib/*"]
}
},
"files": [
"./node_modules/vite-plugin-pwa/client.d.ts",
Expand Down

0 comments on commit 0968e60

Please sign in to comment.