From a75ccf5a25dd3886fb2fb71dc4b0fef542a5ca69 Mon Sep 17 00:00:00 2001 From: alma Date: Tue, 6 May 2025 10:31:42 +0200 Subject: [PATCH] missions carrousse --- app/missions/page.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/missions/page.tsx b/app/missions/page.tsx index be7da659..7fb8ca8f 100644 --- a/app/missions/page.tsx +++ b/app/missions/page.tsx @@ -50,6 +50,8 @@ export default function MissionsPage() { throw new Error('Failed to fetch missions'); } const data = await response.json(); + // Debug log to check mission data structure + console.log("Mission data:", data.missions); setMissions(data.missions || []); } catch (error) { console.error('Error fetching missions:', error); @@ -134,6 +136,7 @@ export default function MissionsPage() { // Function to get participation label const getParticipationLabel = (participation: string | null | undefined) => { + console.log("Participation value:", participation); // Debug log if (!participation) return 'Non spécifié'; switch(participation) { case 'volontaire': return 'Volontaire';