From 180dee0ee36ebaf91dbc4fe30d57d5fb19e33c9d Mon Sep 17 00:00:00 2001 From: "[dyad]" Date: Wed, 21 Jan 2026 09:12:37 +0100 Subject: [PATCH] [dyad] Improve tab color logic - wrote 1 file(s) --- src/components/meta-form.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/meta-form.tsx b/src/components/meta-form.tsx index 742a68e..6e526c4 100644 --- a/src/components/meta-form.tsx +++ b/src/components/meta-form.tsx @@ -67,10 +67,8 @@ export function MetaForm() { let headlinesColor: IndicatorColor = "gray"; if (metaData.headlines && metaData.headlines.length > 0) { const h1s = metaData.headlines.filter((h) => h.tag === "h1"); - if (h1s.length === 0) { + if (h1s.length !== 1) { headlinesColor = "red"; - } else if (h1s.length > 1) { - headlinesColor = "yellow"; } else { headlinesColor = "green"; }