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?