Skip to content

Commit 672cf47

Browse files
fix: restore serve script and update todos logic
1 parent 6651c62 commit 672cf47

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Sprint-3/todo-list/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@
33
"version": "1.0.0",
44
"type": "module",
55
"license": "CC-BY-SA-4.0",
6-
"description": "You must update this package"
6+
"description": "You must update this package",
7+
"scripts": {
8+
"serve": "http-server"
9+
}
710
}

Sprint-3/todo-list/todos.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,12 @@ export function toggleCompletedOnTask(todos, taskIndex) {
2727
}
2828
}
2929

30-
// Remove all tasks that are marked as completed§
30+
// Remove all tasks that are marked as completed
3131
export function deleteCompleted(todos) {
3232
for (let i = todos.length - 1; i >= 0; i--) {
3333
if (todos[i].completed) {
3434
todos.splice(i, 1);
3535
}
3636
}
3737
}
38+

0 commit comments

Comments
 (0)