We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a713a3c commit 50fa6bdCopy full SHA for 50fa6bd
src/lib/workout.ts
@@ -23,7 +23,7 @@ export const createSteps = (config: RoutineConfiguration): Step[] => {
23
totalSets: config.Sets.value,
24
totalCycles: config.Cycles.value,
25
});
26
- if (j <= config.Cycles.value - 1 && i <= config.Sets.value) {
+ if (i <= config.Cycles.value - 2) {
27
steps.push({
28
name: config.Rest.name,
29
duration: config.Rest.duration,
0 commit comments