also check len of put

This commit is contained in:
2025-12-14 11:41:21 +01:00
parent fad61d2eeb
commit 731b1b37c6
+1 -1
View File
@@ -284,7 +284,7 @@
li.classList.add("current"); li.classList.add("current");
currentIndex = i; currentIndex = i;
} }
if(currentIndex+1 === i && skipNext) { if(currentIndex+1 === i && skipNext && putQueue.length === 0) {
li.style.textDecoration = "line-through"; li.style.textDecoration = "line-through";
} }
ul.appendChild(li); ul.appendChild(li);