fixed done command

This commit is contained in:
liyunze 2024-10-25 20:00:47 +11:00
parent 81e3b5f5ba
commit 9baf6ef678

View file

@ -1741,7 +1741,7 @@ async function markTaskDone(username, task) {
// if there's no comma in the task (single task) // if there's no comma in the task (single task)
let index = tasks[username].todos.findIndex( let index = tasks[username].todos.findIndex(
(t) => t.text.toLowerCase() === task.toLowerCase() && !task.done (t) => t.text.toLowerCase() === task.toLowerCase() && !t.done
); );
// is there a task with focus on? // is there a task with focus on?