From 84a4dbaf83e9ee1676b461a0508405c533e7e396 Mon Sep 17 00:00:00 2001 From: Amazingca Date: Sun, 3 May 2026 23:05:21 -0600 Subject: [PATCH] Change capitalization and add reactive zero-element archive message --- archived.html | 4 +--- archived.js | 3 ++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/archived.html b/archived.html index 31d0acf..ed69325 100644 --- a/archived.html +++ b/archived.html @@ -20,9 +20,7 @@
-
-

No archived todos for now...

-
+
diff --git a/archived.js b/archived.js index d3d20c1..382335f 100644 --- a/archived.js +++ b/archived.js @@ -97,9 +97,10 @@ const applyListeners = () => { const hydrateTodos = () => { - if (archived.length >= 0) archivedElement.innerHTML = archived + if (archived.length > 0) archivedElement.innerHTML = archived .map((x, index) => todoElement(x, index)) .join(""); + else archivedElement.innerHTML = "

no archived todos for now…

"; applyListeners(); }; -- 2.54.0