From 3c26a81773057e5a6f99543e237b2410f0113b93 Mon Sep 17 00:00:00 2001 From: Camille Moussu <66134347+Eriikah@users.noreply.github.com> Date: Wed, 12 Nov 2025 20:57:16 +0100 Subject: [PATCH] [#296] removed old condition that is no longer needed (#305) Co-authored-by: Camille Moussu --- src/components/Calendar/CalendarSelection.tsx | 3 ++- src/components/Event/EventChip/EventChip.tsx | 5 ----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/components/Calendar/CalendarSelection.tsx b/src/components/Calendar/CalendarSelection.tsx index e2ee2a6..72fea17 100644 --- a/src/components/Calendar/CalendarSelection.tsx +++ b/src/components/Calendar/CalendarSelection.tsx @@ -40,8 +40,9 @@ function CalendarAccordion({ const allCalendars = useAppSelector((state) => state.calendars.list); const [expended, setExpended] = useState(defaultExpanded); - if (calendars.length === 0 && !showAddButton) return null; useEffect(() => setExpended(defaultExpanded), [defaultExpanded]); + + if (calendars.length === 0 && !showAddButton) return null; return ( ; - } - // Color and contrast logic const bestColor = getBestColor( (calendar.color as { light: string; dark: string }) ?? {