From 958a4d3e579db32ee630f51bc3a197644a9bced1 Mon Sep 17 00:00:00 2001 From: alma Date: Sat, 17 Jan 2026 02:11:04 +0100 Subject: [PATCH] Fondation --- components/parole.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);