diff --git a/src/graphql/data/nft/CollectionSearch.ts b/src/graphql/data/nft/CollectionSearch.ts index b33a4c5a46..c867e9a86b 100644 --- a/src/graphql/data/nft/CollectionSearch.ts +++ b/src/graphql/data/nft/CollectionSearch.ts @@ -82,9 +82,11 @@ export function useCollectionSearch(queryOrAddress: string): useCollectionSearch const isName = !isAddress(queryOrAddress.toLowerCase()) const queryResult = useCollectionQuerySearch(queryOrAddress, /* skip= */ !isName) const addressResult = useCollection(queryOrAddress, /* skip= */ isName) + const invalidCollectionAddress = + blocklistedCollections.includes(queryOrAddress) || !addressResult.data.stats?.total_supply return isName ? queryResult - : blocklistedCollections.includes(queryOrAddress) + : invalidCollectionAddress ? { data: [], loading: false } : { data: [addressResult.data], loading: addressResult.loading } }