diff --git a/hooks/useTopSellingCollections.ts b/hooks/useTopSellingCollections.ts index bb5771b5c..f33b056fc 100644 --- a/hooks/useTopSellingCollections.ts +++ b/hooks/useTopSellingCollections.ts @@ -35,9 +35,12 @@ export default function ( swrOptions ) - const ids = topSellingData?.collections?.map( - (collection) => collection.id as string - ) + const ids = topSellingData?.collections?.map((collection) => { + if (collection.id?.includes(':')) { + return collection.id.split(':')[0] as string + } + return collection.id as string + }) const { data: collections, isValidating: isValidatingCollections } = useCollections(