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