Skip to content

Commit

Permalink
removed last rest between steps
Browse files Browse the repository at this point in the history
  • Loading branch information
andorsk committed May 6, 2024
1 parent 08ff792 commit 9cb6636
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/lib/workout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,17 @@ export const createSteps = (config: RoutineConfiguration): Step[] => {
});
}
}
steps.push({
name: config.RestBetweenSteps.name,
duration: config.RestBetweenSteps.duration,
color: "bg-teal-500",
cycle: 0,
totalSets: config.Sets.value,
totalCycles: config.Cycles.value,
set: j,
});
if (j < config.Sets.value - 1) {
steps.push({
name: config.RestBetweenSteps.name,
duration: config.RestBetweenSteps.duration,
color: "bg-teal-500",
cycle: 0,
totalSets: config.Sets.value,
totalCycles: config.Cycles.value,
set: j,
});
}
}

steps.push({
Expand Down

0 comments on commit 9cb6636

Please sign in to comment.