Fix custom time for sleep timer

This commit is contained in:
Greg Lorenzen 2024-07-11 17:57:24 +00:00 committed by Greg Lorenzen
parent 0f35e72b78
commit 7595682245

View file

@ -123,7 +123,11 @@ export default {
} }
const timeInSeconds = Math.round(Number(this.customTime) * 60) 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) { setTime(time) {
this.$emit('set', time) this.$emit('set', time)