mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
more additionalInformation checks
This commit is contained in:
parent
3d9ed9d1c3
commit
1355be96c8
@ -39,7 +39,9 @@ const AssetTeaser = ({
|
||||
}
|
||||
>
|
||||
<Link to={`/asset/${asset.id}`}>
|
||||
{additionalInformation.categories && !minimal && (
|
||||
{additionalInformation &&
|
||||
additionalInformation.categories &&
|
||||
!minimal && (
|
||||
<CategoryImage
|
||||
dimmed
|
||||
category={additionalInformation.categories[0]}
|
||||
@ -47,7 +49,7 @@ const AssetTeaser = ({
|
||||
)}
|
||||
<h1>{main.name}</h1>
|
||||
|
||||
{!minimal && (
|
||||
{additionalInformation && !minimal && (
|
||||
<div className={styles.description}>
|
||||
<Dotdotdot clamp={3}>
|
||||
{additionalInformation.description}
|
||||
@ -55,7 +57,8 @@ const AssetTeaser = ({
|
||||
</div>
|
||||
)}
|
||||
<footer className={styles.assetFooter}>
|
||||
{additionalInformation.categories && (
|
||||
{additionalInformation &&
|
||||
additionalInformation.categories && (
|
||||
<div>{additionalInformation.categories[0]}</div>
|
||||
)}
|
||||
{allowPricing && (
|
||||
|
Loading…
Reference in New Issue
Block a user