Skip to content

Commit

Permalink
Update sleep timer modal to not show negative time remaining
Browse files Browse the repository at this point in the history
  • Loading branch information
advplyr committed Jan 26, 2025
1 parent 4b4a2b4 commit b6ab7dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/modals/SleepTimerModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ export default {
return [5, 10, 15, 30, 45, 60, 90]
},
timeRemainingPretty() {
if (this.currentTime <= 0) return '0:00'
return this.$secondsToTimestamp(this.currentTime)
},
isIos() {
Expand Down

0 comments on commit b6ab7dc

Please sign in to comment.