refactor logging in MonthMenu and TimeStepper components to use console.error for NaN emissions

This commit is contained in:
2025-10-28 18:34:51 +01:00
parent 037790a497
commit 0ff842b845
2 changed files with 3 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ const dropdownRef = ref(null)
const loading = ref(false) const loading = ref(false)
const select = async (newMonth) => { const select = async (newMonth) => {
console.log('newMonth: ', newMonth) // console.log('newMonth: ', newMonth)
showMenu.value = false showMenu.value = false
loading.value = true loading.value = true

View File

@@ -64,7 +64,7 @@ const hour = computed({
// console.log('Hour computed. h:', hourVal, 'm: ', m) // console.log('Hour computed. h:', hourVal, 'm: ', m)
if (typeof newVal !== 'number' || isNaN(newVal)) { if (typeof newVal !== 'number' || isNaN(newVal)) {
console.log('Hour emit NaN') console.error('Hour emit NaN')
emit('update:time', NaN) emit('update:time', NaN)
} else { } else {
emit('update:time', `${String(hourVal).padStart(2, '0')}:${m}`) emit('update:time', `${String(hourVal).padStart(2, '0')}:${m}`)
@@ -84,7 +84,7 @@ const minute = computed({
// console.log('Minute computed. h:', h, 'm: ', minuteVal) // console.log('Minute computed. h:', h, 'm: ', minuteVal)
if (typeof newVal !== 'number' || isNaN(newVal)) { if (typeof newVal !== 'number' || isNaN(newVal)) {
console.log('Minute emit NaN') console.error('Minute emit NaN')
emit('update:time', NaN) emit('update:time', NaN)
} else { } else {
emit('update:time', `${h}:${String(minuteVal).padStart(2, '0')}`) emit('update:time', `${h}:${String(minuteVal).padStart(2, '0')}`)