Skip to content

Commit

Permalink
fix teaser
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdanfazakas committed Sep 1, 2023
1 parent e0a1c7b commit aa64ee6
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/components/@shared/AssetTeaser/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,11 @@ export default function AssetTeaser({
const isCompute = Boolean(getServiceByName(asset, 'compute'))
const accessType = isCompute ? 'compute' : 'access'
const { owner } = asset.nft
const { orders, allocated } = asset.stats
const price: AssetPrice = asset?.stats?.price?.value
? asset?.stats?.price
: {
value: Number(asset?.accessDetails?.price),
tokenSymbol: asset?.accessDetails?.baseToken?.symbol,
tokenAddress: asset?.accessDetails?.baseToken?.address
}
const { orders, allocated, price } = asset.stats
const isUnsupportedPricing =
!asset.services.length || asset?.accessDetails?.type === 'NOT_SUPPORTED'
!asset.services.length ||
price.value === undefined ||
asset?.accessDetails?.type === 'NOT_SUPPORTED'
const { locale } = useUserPreferences()

return (
Expand Down

0 comments on commit aa64ee6

Please sign in to comment.