Skip to content

Commit

Permalink
Fix custom time for sleep timer
Browse files Browse the repository at this point in the history
  • Loading branch information
glorenzen committed Jul 11, 2024
1 parent cd902c0 commit b989b9f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client/components/modals/SleepTimerModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,11 @@ export default {
}
const timeInSeconds = Math.round(Number(this.customTime) * 60)
this.setTime(timeInSeconds)
const time = {
seconds: timeInSeconds,
timerType: this.$constants.SleepTimerTypes.COUNTDOWN
}
this.setTime(time)
},
setTime(time) {
this.$emit('set', time)
Expand Down

0 comments on commit b989b9f

Please sign in to comment.