Skip to content

Commit

Permalink
Coordinates trainer: tick is never called when time is disabled...
Browse files Browse the repository at this point in the history
  • Loading branch information
Virinas-code committed Mar 25, 2022
1 parent dc7fe9f commit 1a8b1cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/coordinateTrainer/src/ctrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ export default class CoordinateTrainerCtrl {
this.timeLeft = this.duration - timeSpent;
this.redraw();

if (this.timeLeft > 0 || this.timeDisabled) setTimeout(this.tick, TICK_DELAY);
if (this.timeLeft > 0) setTimeout(this.tick, TICK_DELAY);
else this.stop();
};

Expand Down

0 comments on commit 1a8b1cd

Please sign in to comment.