use fetchWrapper for getAllEvents.js

This commit is contained in:
T'JAMPENS QUENTIN p2406187 committed 2026-01-28 14:47:41 +01:00
1 parent b5786d288d
commit e9c8b7cda8
2 files changed
+6 -24

No files matched your search

+2 -2
View File
@@ -10,8 +10,8 @@ export function EventProvider({ children }) {
const [events, setEvents] = useState([]);
const updateEvent = async () => {
const data = await getAllEvents();
setEvents(data.data);
const result = await getAllEvents();
setEvents(result.data.data);
}
const addEvent = async (name, description, start, end) => {