missions carrousse
This commit is contained in:
parent
465fd309e0
commit
a75ccf5a25
@ -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';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user