diff --git a/src/pages/calendar-page.tsx b/src/pages/calendar-page.tsx index 890be7f..d5bd626 100644 --- a/src/pages/calendar-page.tsx +++ b/src/pages/calendar-page.tsx @@ -142,16 +142,16 @@ function CalendarContent() { {(cell) => { const key = cell.other ? "" : dateKey(new Date(viewYear(), viewMonth(), cell.day)); - const items = cell.other ? null : itemsByDay().get(key); + const items = () => cell.other ? null : itemsByDay().get(key); const cellToday = !cell.other && isToday(cell.day); - const cellSelected = !cell.other && key === selectedKey(); + const cellSelected = () => !cell.other && key === selectedKey(); return ( );