diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-localstorage-by-building-a-todo-app/65004ba581d03d1d5628b41c.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-localstorage-by-building-a-todo-app/65004ba581d03d1d5628b41c.md index 08ced41b63f..efb4625e764 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-localstorage-by-building-a-todo-app/65004ba581d03d1d5628b41c.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-localstorage-by-building-a-todo-app/65004ba581d03d1d5628b41c.md @@ -9,7 +9,7 @@ dashedName: step-58 You've retrieved the task item(s) now, but they still don't reflect in the UI when the page loads. However, they appear when you add a new task. -To fix this issue, you can check if there's a task inside `taskData`, and then call the `updateTaskContainer()`. +You can check if there's a task inside `taskData` using the length of the array. Because `0` is a falsy value all you need for the condition is the array length. Check if there's a task inside `taskData`, then call the `updateTaskContainer()` inside the `if` statement block. @@ -17,7 +17,7 @@ With that, you've completed this project. # --hints-- -You should create an `if` statement with the condition `taskData.length`. +You should create an `if` statement with `(taskData.length)` as the condition. As a reminder, `0` is a falsy value. ```js assert.match(code, /if\s*\(taskData\.length\)\s*\{\s*/)