Skip to content

Commit

Permalink
fix: infinite loading in the asset list component (decentraland#2345)
Browse files Browse the repository at this point in the history
* fix: infinite loading in the asset list component

* feat: add count !== undefined check
  • Loading branch information
juanmahidalgo authored Jan 3, 2025
1 parent a3eb227 commit 89beada
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/components/AssetList/AssetList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const AssetList = (props: Props) => {
)
const maxQuerySize = getMaxQuerySize(vendor)

const hasMorePages = (assets.length !== count || count === maxQuerySize) && page <= MAX_PAGE
const hasMorePages = !isLoading && count !== undefined && (assets.length !== count || count === maxQuerySize) && page <= MAX_PAGE

const emptyStateTranslationString = useMemo(() => {
if (assets.length > 0) {
Expand Down

0 comments on commit 89beada

Please sign in to comment.