Skip to content

Commit 86557b6

Browse files
committed
Added alert in script.mjs
1 parent fb3eec6 commit 86557b6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sprint-3/todo-list/script.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ function addNewTodo() {
2828
if (task) {
2929
Todos.addTask(todos, task, false, deadline);
3030
render();
31+
} else {
32+
alert("Please enter a task description.");
3133
}
3234

3335
taskInput.value = "";

0 commit comments

Comments
 (0)