Skip to content

Commit 948fa59

Browse files
author
Pretty Taruvinga
committed
Reset timer state before starting new countdown"
1 parent 6b7e254 commit 948fa59

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sprint-3/alarmclock/alarmclock.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ function setAlarm() {
2323

2424
if (timer) {
2525
clearInterval(timer);
26+
timer = null;
2627
}
2728

2829
updateDisplay(timeLeft);

0 commit comments

Comments
 (0)