From 9baf6ef678009e68ecb9ac569a2cfad1c40e2ba9 Mon Sep 17 00:00:00 2001 From: liyunze <50455574+liyunze-coding@users.noreply.github.com> Date: Fri, 25 Oct 2024 20:00:47 +1100 Subject: [PATCH] fixed done command --- scripts/taskList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/taskList.js b/scripts/taskList.js index 31a8644..7820b02 100644 --- a/scripts/taskList.js +++ b/scripts/taskList.js @@ -1741,7 +1741,7 @@ async function markTaskDone(username, task) { // if there's no comma in the task (single task) 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?