Skip to content

Commit bdb176b

Browse files
author
Pretty Taruvinga
committed
Reset alarm state when starting a new countdown
1 parent ae98f15 commit bdb176b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sprint-3/alarmclock/alarmclock.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ function setAlarm() {
2626
timer = null;
2727
}
2828

29+
stopAlarm();
30+
2931
updateDisplay(timeLeft);
3032

3133
timer = setInterval(() => {

0 commit comments

Comments
 (0)