diff --git a/frontend/src/routes/book/+page.svelte b/frontend/src/routes/book/+page.svelte index 1062f28..eb90d35 100644 --- a/frontend/src/routes/book/+page.svelte +++ b/frontend/src/routes/book/+page.svelte @@ -114,18 +114,13 @@ // Create CalendarDate objects const minDate = new CalendarDate(today.getFullYear(), today.getMonth() + 1, today.getDate()); - const tomorrowDate = new CalendarDate( - tomorrow.getFullYear(), - tomorrow.getMonth() + 1, - tomorrow.getDate() - ); const maxCalendarDate = new CalendarDate( maxDate.getFullYear(), maxDate.getMonth() + 1, maxDate.getDate() ); - let placeholder = $state(tomorrowDate); + let placeholder = $state(minDate); $effect(() => { const monthKey = `${placeholder.year}-${String(placeholder.month).padStart(2, '0')}`; @@ -308,7 +303,7 @@ } // Initialize with current month - fetchHoursForMonth(tomorrowDate); + fetchHoursForMonth(minDate); // Check if date is unavailable function isDateUnavailable(date: DateValue): boolean {