From 59a8cfe752216abb5121a25d9306768154170e68 Mon Sep 17 00:00:00 2001 From: ORDONNEAU Antoine Date: Tue, 3 Mar 2026 12:07:22 +0100 Subject: [PATCH] fix export ics bug user --- src/pages/Home/components/Calendar/calendar.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pages/Home/components/Calendar/calendar.jsx b/src/pages/Home/components/Calendar/calendar.jsx index 9519b77..8129bf7 100644 --- a/src/pages/Home/components/Calendar/calendar.jsx +++ b/src/pages/Home/components/Calendar/calendar.jsx @@ -7,7 +7,6 @@ import {AuthContext} from "../../../../contexts/auth/AuthContext.ts"; function Calendar() { - const { events } = useContext(EventContext); const { user } = useContext(AuthContext); @@ -134,7 +133,7 @@ function Calendar() { variant={"primary"} onClick={() => { window.location.href = - `http://localhost/api/export/ics`; + `http://localhost/api/export/ics/${user.id}`; }} > Exporter mon agenda