diff --git a/surfsense_web/components/tool-ui/plan/schema.ts b/surfsense_web/components/tool-ui/plan/schema.ts index 08385c34a..56a5cd218 100644 --- a/surfsense_web/components/tool-ui/plan/schema.ts +++ b/surfsense_web/components/tool-ui/plan/schema.ts @@ -18,7 +18,10 @@ export type TodoStatus = z.infer; export function normalizeStatus(status: unknown): TodoStatus { if (typeof status !== "string") return "pending"; - const normalized = status.toLowerCase().trim().replace(/[\s_-]+/g, "_"); + const normalized = status + .toLowerCase() + .trim() + .replace(/[\s_-]+/g, "_"); // Completed variations // Sources: Linear (Done), Jira (Done), ClickUp (Complete, Closed), GitHub (closed)