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 }