fix(curriculum): updating description and hint text for Todo App project step 58 (#52928)

This commit is contained in:
v-i-k-a-s
2024-01-04 09:08:59 +07:00
committed by GitHub
parent acad3bb8ff
commit 083b03c283
@@ -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*/)