From 9aac7eba2a50f1307be4cafee10f394d887c9819 Mon Sep 17 00:00:00 2001 From: oliver Date: Wed, 15 Apr 2026 19:01:33 -0300 Subject: [PATCH] check --- todo.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/todo.html b/todo.html index 8868d2d..c476d2d 100644 --- a/todo.html +++ b/todo.html @@ -530,9 +530,10 @@ function buildRow(item, isNew = false) { const id = item.id ?? item._id ?? item.ID ?? ""; - const done = !!item.done; + const toBool = (v) => v === 1 || v === true || v === "1"; + const done = toBool(item.done); const name = item.name ?? item.title ?? ""; - const today = !!(item.today ?? item.Today); + const today = toBool(item.today ?? item.Today); const mins = item.minutes ?? item.Minutes ?? item.mins ?? ""; const tr = document.createElement("tr");