diff --git a/frontend/lib/dashboard-utils.ts b/frontend/lib/dashboard-utils.ts index 73505b8b..5a30cbed 100644 --- a/frontend/lib/dashboard-utils.ts +++ b/frontend/lib/dashboard-utils.ts @@ -972,7 +972,11 @@ export function computeFrontTrendSignal( ]; if (backendNotes.length) { - backendNotes.slice(0, metrics.length).forEach((note, index) => { + const normalizedSummary = backendSummary.trim(); + const alignedNotes = backendNotes.filter( + (note) => String(note || "").trim() !== normalizedSummary, + ); + alignedNotes.slice(0, metrics.length).forEach((note, index) => { if (!note) return; metrics[index] = { ...metrics[index],