From d8e5cc86f826aa9f8f18dc5bf15202d79920ae0b Mon Sep 17 00:00:00 2001 From: alma Date: Sat, 17 Jan 2026 00:40:42 +0100 Subject: [PATCH] Fondation --- components/calendar/calendar-widget.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/components/calendar/calendar-widget.tsx b/components/calendar/calendar-widget.tsx index 49a7c77..aa4af03 100644 --- a/components/calendar/calendar-widget.tsx +++ b/components/calendar/calendar-widget.tsx @@ -30,15 +30,16 @@ export function CalendarWidget() { const lastEventCountRef = useRef(-1); useEffect(() => { - console.log("Calendar Widget - Session Status:", status); + const sessionStatus = status; + console.log("Calendar Widget - Session Status:", sessionStatus); console.log("Calendar Widget - Session Data:", session); - if (status === "loading") { + if (sessionStatus === "loading") { console.log("Calendar Widget - Session is loading"); return; } - if (status !== "authenticated" || !session) { + if (sessionStatus !== "authenticated" || !session) { console.log("Calendar Widget - Not authenticated, skipping fetch"); setLoading(false); return;