Skip to content

Commit

Permalink
Fix if condition for repititions
Browse files Browse the repository at this point in the history
  • Loading branch information
metinbaris committed Jun 6, 2024
1 parent 5e3c018 commit 153b57c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common-theme/assets/scripts/stop-watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class StopWatch {
};

const playNextRepetition = async (repetitionIndex) => {
if (repetitionIndex < repetitions) {
if (repetitionIndex <= repetitions) {
await playSound();
await new Promise(resolve => setTimeout(resolve, delayBetweenRepetitions));
await playNextRepetition(repetitionIndex + 1);
Expand Down

0 comments on commit 153b57c

Please sign in to comment.