diff --git a/components/calendar/InfoCalendar.tsx b/components/calendar/InfoCalendar.tsx index 7e260a1..381d1c5 100644 --- a/components/calendar/InfoCalendar.tsx +++ b/components/calendar/InfoCalendar.tsx @@ -28,7 +28,7 @@ export default function InfoCalendar() { }; const customTileContent = ({ date, view }: { date: Date; view: string }) => { - if (data && view === "month") { + if (Array.isArray(data) && view === "month") { const dayData = data.filter((dayData: MonthCalendarProps) => { const openDate = new Date( dayData.openDate.year,