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');
|
throw new Error('Failed to fetch missions');
|
||||||
}
|
}
|
||||||
const data = await response.json();
|
const data = await response.json();
|
||||||
|
// Debug log to check mission data structure
|
||||||
|
console.log("Mission data:", data.missions);
|
||||||
setMissions(data.missions || []);
|
setMissions(data.missions || []);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error fetching missions:', error);
|
console.error('Error fetching missions:', error);
|
||||||
@ -134,6 +136,7 @@ export default function MissionsPage() {
|
|||||||
|
|
||||||
// Function to get participation label
|
// Function to get participation label
|
||||||
const getParticipationLabel = (participation: string | null | undefined) => {
|
const getParticipationLabel = (participation: string | null | undefined) => {
|
||||||
|
console.log("Participation value:", participation); // Debug log
|
||||||
if (!participation) return 'Non spécifié';
|
if (!participation) return 'Non spécifié';
|
||||||
switch(participation) {
|
switch(participation) {
|
||||||
case 'volontaire': return 'Volontaire';
|
case 'volontaire': return 'Volontaire';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user