diff --git a/src/@context/Asset.tsx b/src/@context/Asset.tsx index 12c533aa4..6e46a1e59 100644 --- a/src/@context/Asset.tsx +++ b/src/@context/Asset.tsx @@ -120,7 +120,7 @@ function AssetProvider({ // Helper: Get and set asset access details // ----------------------------------- const fetchAccessDetails = useCallback(async (): Promise => { - if (!asset?.chainId || !asset?.services) return + if (!asset?.chainId || !asset?.services?.length) return const accessDetails = await getAccessDetails( asset.chainId, diff --git a/src/components/@shared/AssetTeaser/index.tsx b/src/components/@shared/AssetTeaser/index.tsx index f0db24936..8465f1783 100644 --- a/src/components/@shared/AssetTeaser/index.tsx +++ b/src/components/@shared/AssetTeaser/index.tsx @@ -58,7 +58,7 @@ export default function AssetTeaser({ {removeMarkdown(description?.substring(0, 300) || '')} - {isUnsupportedPricing ? ( + {isUnsupportedPricing || !asset.services.length ? ( No pricing schema available ) : ( diff --git a/src/components/@shared/FileIcon/index.tsx b/src/components/@shared/FileIcon/index.tsx index 0d0e3fbb0..562f39a43 100644 --- a/src/components/@shared/FileIcon/index.tsx +++ b/src/components/@shared/FileIcon/index.tsx @@ -30,9 +30,9 @@ export default function FileIcon({ return (