diff --git a/src/pages/admin/AdminInvitationsPage.tsx b/src/pages/admin/AdminInvitationsPage.tsx index febc527..36d6c7d 100644 --- a/src/pages/admin/AdminInvitationsPage.tsx +++ b/src/pages/admin/AdminInvitationsPage.tsx @@ -62,7 +62,10 @@ export const AdminInvitationsPage: React.FC = () => { useEffect(() => { if (selectedMandateId) { fetchInvitations(selectedMandateId, { includeExpired: showExpired, includeUsed: showUsed }); - fetchRoles(selectedMandateId).then(setRoles); + fetchRoles(selectedMandateId).then(fetchedRoles => { + console.warn('[AdminInvitations] fetchRoles result:', { mandateId: selectedMandateId, rolesCount: fetchedRoles.length, roles: fetchedRoles }); + setRoles(fetchedRoles); + }); } }, [selectedMandateId, showExpired, showUsed, fetchInvitations, fetchRoles]);