fix(curriculum): correct grammatical typo in FCC Authors Page lesson (#67414)

This commit is contained in:
Harsh Bardhan Mangaraj
2026-05-15 13:42:41 +05:30
committed by GitHub
parent 3f99811523
commit e2aa7ce383
2 changed files with 2 additions and 2 deletions
@@ -7,7 +7,7 @@ dashedName: step-28
# --description--
Finally, what if there's an error and the author data fail to load? Then we need to show an error in the UI. That's exactly what the `.catch()` method is for handling errors.
Finally, what if there's an error and the author data fails to load? Then we need to show an error in the UI. That's exactly what the `.catch()` method is for handling errors.
Inside the `.catch()`, remove the `console.error()` and set the `innerHTML` of the `authorContainer` to a `p` element with the `class` `"error-msg"` and text `"There was an error loading the authors"`.
@@ -7,7 +7,7 @@ dashedName: step-23
# --description--
Finally, what if there's an error and the author data fail to load? Then you need to show an error in the UI. That's exactly what the `.catch()` method is for handling errors.
Finally, what if there's an error and the author data fails to load? Then you need to show an error in the UI. That's exactly what the `.catch()` method is for handling errors.
Inside the `.catch()`, remove the `console.error()` and set the `innerHTML` of the `authorContainer` to a `p` element with a `class` attribute of `"error-msg"` and text `"There was an error loading the authors"`.