diff --git a/src/components/@shared/AssetTeaser/index.test.tsx b/src/components/@shared/AssetTeaser/index.test.tsx index 61c1f83ec..b332c9edb 100644 --- a/src/components/@shared/AssetTeaser/index.test.tsx +++ b/src/components/@shared/AssetTeaser/index.test.tsx @@ -8,7 +8,7 @@ describe('@shared/AssetTeaser', () => { testRender() it('renders no pricing schema available', () => { - asset.stats.price = null + asset.accessDetails.type = 'NOT_SUPPORTED' render() expect(screen.getByText('No pricing schema available')).toBeInTheDocument() expect(screen.getByText('This is a test.')).toBeInTheDocument() diff --git a/src/components/@shared/AssetTeaser/index.tsx b/src/components/@shared/AssetTeaser/index.tsx index 37477a954..dd9c4a3fb 100644 --- a/src/components/@shared/AssetTeaser/index.tsx +++ b/src/components/@shared/AssetTeaser/index.tsx @@ -30,7 +30,7 @@ export default function AssetTeaser({ const accessType = isCompute ? 'compute' : 'access' const { owner } = asset.nft const { orders, allocated } = asset.stats - const price: AssetPrice = asset.stats.price.value + const price: AssetPrice = asset?.stats?.price?.value ? asset?.stats?.price : { value: Number(asset?.accessDetails?.price),