mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 09:03:12 +03:00
Show benefits only if they exist
This commit is contained in:
parent
12599c282a
commit
435e9059bc
@ -405,7 +405,7 @@ function ProductCard({product}) {
|
||||
}} />
|
||||
<h4 className="gh-portal-product-name">{product.name}</h4>
|
||||
<div className="gh-portal-product-description">{product.description}</div>
|
||||
<div className="gh-portal-product-benefits"><ProductBenefits product={product} /></div>
|
||||
{(product.benefits && product.benefits.length ? <div className="gh-portal-product-benefits"><ProductBenefits product={product} /></div> : '')}
|
||||
</div>
|
||||
<ProductCardFooter product={product} />
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user