Skip to content

Commit

Permalink
update to main
Browse files Browse the repository at this point in the history
  • Loading branch information
andorsk committed May 12, 2024
1 parent a713a3c commit 50fa6bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/workout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const createSteps = (config: RoutineConfiguration): Step[] => {
totalSets: config.Sets.value,
totalCycles: config.Cycles.value,
});
if (j <= config.Cycles.value - 1 && i <= config.Sets.value) {
if (i <= config.Cycles.value - 2) {
steps.push({
name: config.Rest.name,
duration: config.Rest.duration,
Expand Down

0 comments on commit 50fa6bd

Please sign in to comment.