diff --git a/components/parole.tsx b/components/parole.tsx index 056a250..82993f5 100644 --- a/components/parole.tsx +++ b/components/parole.tsx @@ -75,7 +75,7 @@ export function Parole() { if (Array.isArray(data.messages)) { // Utiliser le totalUnreadCount de l'API (plus fiable) const currentUnreadCount = data.totalUnreadCount || 0; - const currentMessageIds = new Set(data.messages.map((m: any) => m.id)); + const currentMessageIds = new Set(data.messages.map((m: any) => m.id as string)); // Update unread count state for badge display setUnreadCount(currentUnreadCount);