fix: rectified the typo (from 'time' to 'times') (#55613)

This commit is contained in:
catychelpan
2024-07-22 21:58:59 +03:00
committed by GitHub
parent 2f59fee0c2
commit 35cf565f48

View File

@@ -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.