mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-13 06:04:13 -04:00
fix: rectified the typo (from 'time' to 'times') (#55613)
This commit is contained in:
@@ -9,7 +9,7 @@ dashedName: step-24
|
||||
|
||||
Your fCC Authors Page is now complete. But you could improve on a few things.
|
||||
|
||||
First, if you click the `Load More Authors` button a couple of time, you'll see that it won't add more authors to the page. That's because you've reached the end of the authors list. For a better user experience, you should make it clear when there's no more data to display by disabling the button and changing its text. An `if` statement is the perfect tool for this.
|
||||
First, if you click the `Load More Authors` button a couple of times, you'll see that it won't add more authors to the page. That's because you've reached the end of the authors list. For a better user experience, you should make it clear when there's no more data to display by disabling the button and changing its text. An `if` statement is the perfect tool for this.
|
||||
|
||||
Inside the `fetchMoreAuthors` function, write an `if` statement and set the condition to `authorDataArr.length <= endingIndex` – meaning there's no more data to load.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user