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");