fix(curriculum): remove first person language from calorie counter workshop (#67405)

This commit is contained in:
Clarence Bakosi
2026-05-14 20:03:37 +01:00
committed by GitHub
parent 77d791ba7c
commit fa7d6cfe60
2 changed files with 2 additions and 2 deletions
@@ -7,7 +7,7 @@ dashedName: step-54
# --description--
Try adding a couple of entries to the `Breakfast` category, and you may notice some bugs! The first thing we need to fix is the entry counts the first entry should have a count of `1`, not `0`.
Try adding a couple of entries to the `Breakfast` category, and you may notice some bugs! The first thing you need to fix is the entry counts the first entry should have a count of `1`, not `0`.
This bug occurs because you are querying for `input[type="text"]` elements *before* adding the new entry to the page. To fix this, update your `entryNumber` variable to be the value of the `length` of the query plus `1`. Add this on your declaration line, not in your template strings.
@@ -7,7 +7,7 @@ dashedName: step-54
# --description--
Try adding a couple of entries to the `Breakfast` category, and you may notice some bugs! The first thing we need to fix is the entry counts the first entry should have a count of `1`, not `0`.
Try adding a couple of entries to the `Breakfast` category, and you may notice some bugs! The first thing you need to fix is the entry counts the first entry should have a count of `1`, not `0`.
This bug occurs because you are querying for `input[type="text"]` elements *before* adding the new entry to the page. To fix this, update your `entryNumber` variable to be the value of the `length` of the query plus `1`. Add this on your declaration line, not in your template strings.