Show benefits only if they exist

This commit is contained in:
Peter Zimon 2021-06-24 14:16:35 +02:00
parent 12599c282a
commit 435e9059bc

View File

@ -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>