diff --git a/components/simple-calendar.tsx b/components/simple-calendar.tsx index 49dc942..eed5254 100644 --- a/components/simple-calendar.tsx +++ b/components/simple-calendar.tsx @@ -155,8 +155,17 @@ export function CalendarModal({ date.getMonth() === selectedDate.getMonth() && date.getFullYear() === selectedDate.getFullYear(); - const isToday = - new Date().toDateString() === date.toDateString(); + const isToday = today.toDateString() === date.toDateString(); + + // Check if date is in the past (before today) + const isPast = + !isToday && + date < + new Date( + today.getFullYear(), + today.getMonth(), + today.getDate() + ); return (