Skip to content

Commit cb65771

Browse files
committed
Fix: ensure timer stops at 00:00 and doesn't go below
1 parent dfa1f57 commit cb65771

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
@@ -22,6 +22,7 @@ function decreaseAlarmTime() {
2222
timerInterval = null;
2323
timeRemaining = 0;
2424
playAlarm();
25+
return;
2526
}
2627

2728
timeRemaining--;

0 commit comments

Comments
 (0)