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';