Spaces:
Running

axeronis commited on
Commit
de6a946
·
1 Parent(s): 01aa83b

Fix: Add explicit any type to fix implicit parameter error

Browse files
Files changed (1) hide show
  1. frontend/app/appointments/page.tsx +1 -1
frontend/app/appointments/page.tsx CHANGED
@@ -25,7 +25,7 @@ export default function AppointmentsPage() {
25
  // When date changes, try to find an appointment on that day to select automatically, or clear selection
26
  const handleDateSelect = (date: Date) => {
27
  setSelectedDate(date)
28
- const aptOnDate = appointments.find(a => isSameDay(new Date(a.start_time), date))
29
  // Optional: Auto-select first appointment on click? Or keep previous selection?
30
  // Let's keep manual selection for details, but maybe clear if date has no relation
31
  // Better UX: Clicking a date filters calendar (visual), clicking an event selects it.
 
25
  // When date changes, try to find an appointment on that day to select automatically, or clear selection
26
  const handleDateSelect = (date: Date) => {
27
  setSelectedDate(date)
28
+ const aptOnDate = appointments.find((a: any) => isSameDay(new Date(a.start_time), date))
29
  // Optional: Auto-select first appointment on click? Or keep previous selection?
30
  // Let's keep manual selection for details, but maybe clear if date has no relation
31
  // Better UX: Clicking a date filters calendar (visual), clicking an event selects it.