From 74be76d65bef8494986dc48ba3aa075900b022fe Mon Sep 17 00:00:00 2001 From: "P. Reis" Date: Wed, 23 Oct 2024 18:34:06 -0300 Subject: [PATCH] fix: set hasMore trending statuses inside its own if statement --- src/features/compose/components/search-results.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/features/compose/components/search-results.tsx b/src/features/compose/components/search-results.tsx index edf6e859d..87e85fd1f 100644 --- a/src/features/compose/components/search-results.tsx +++ b/src/features/compose/components/search-results.tsx @@ -160,6 +160,7 @@ const SearchResults = () => { )); resultsIds = results.statuses; } else if (!submitted && trendingStatuses && !trendingStatuses.isEmpty()) { + hasMore = !!nextTrendingStatuses; searchResults = trendingStatuses.map((statusId: string) => ( // @ts-ignore { scrollKey={`${selectedFilter}:${value}`} isLoading={submitted && !loaded} showLoading={submitted && !loaded && searchResults?.isEmpty()} - hasMore={(!!nextTrendingStatuses) || hasMore} + hasMore={hasMore} onLoadMore={handleLoadMore} placeholderComponent={placeholderComponent} placeholderCount={20}