Skip to content

Commit afd29ce

Browse files
committed
fix: alert running session at wrong state
The countdown has not set `isPaused` value to `true` when it ends. This alerts user of running session when they close the website even though the countdown is not running. This commit addressed that.
1 parent b8ca21f commit afd29ce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/composables/usePomodoro.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ export default function usePomodoro () {
129129

130130
playNotificationSound()
131131
clearCountdownInterval()
132+
isPaused.value = true
132133
pomodoro.setIsBreak(false)
133134

134135
document.title = 'Simplemodoro'

0 commit comments

Comments
 (0)