From 9a67f456b2e697bcd3096136f282c10ca270197a Mon Sep 17 00:00:00 2001 From: kevin Date: Fri, 13 Mar 2026 14:50:02 +0100 Subject: [PATCH] fix: default values --- app/components/malio/Time.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/components/malio/Time.vue b/app/components/malio/Time.vue index 9a30e78..8f63685 100644 --- a/app/components/malio/Time.vue +++ b/app/components/malio/Time.vue @@ -202,10 +202,10 @@ const mergedInputClass = (field: 'hours' | 'minutes') => ) const emitCurrentValue = () => { - const formattedHours = padSegment(hoursValue.value) - const formattedMinutes = padSegment(minutesValue.value) + const formattedHours = hoursValue.value ? padSegment(hoursValue.value) : '00' + const formattedMinutes = minutesValue.value ? padSegment(minutesValue.value) : '00' - if (!formattedHours && !formattedMinutes) { + if (!hoursValue.value && !minutesValue.value) { emit('update:modelValue', '') return }