Skip to content

Commit

Permalink
Merge pull request #26 from nalbam/main
Browse files Browse the repository at this point in the history
fix passed start
  • Loading branch information
nalbam authored Nov 10, 2023
2 parents b2b87ea + edbf22d commit 9e78b46
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions public/timer.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,9 @@ class Timer {

passed() {
if (!this.running) {
return;
}
if (this.times[0] > 0 || this.times[1] > 2) {
this.record();
this.reset();
this.start();
} else if (this.times[0] > 0 || this.times[1] > 2) {
this.record();
}
}

Expand Down Expand Up @@ -144,6 +141,8 @@ class Timer {
li.innerText = this.format(this.times);
this.results.appendChild(li);

this.times = [0, 0, 0];

this.findone();
}

Expand Down

0 comments on commit 9e78b46

Please sign in to comment.