From b989b9fa4cd9f1676c967a924c9a99225ececcbd Mon Sep 17 00:00:00 2001 From: Greg Lorenzen Date: Thu, 11 Jul 2024 17:57:24 +0000 Subject: [PATCH] Fix custom time for sleep timer --- client/components/modals/SleepTimerModal.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/components/modals/SleepTimerModal.vue b/client/components/modals/SleepTimerModal.vue index 626883cae6..dc4346c707 100644 --- a/client/components/modals/SleepTimerModal.vue +++ b/client/components/modals/SleepTimerModal.vue @@ -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)