missions carrousse

This commit is contained in:
alma 2025-05-06 10:31:42 +02:00
parent 465fd309e0
commit a75ccf5a25

View File

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