0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-08 02:52:39 -05:00

Fixed empty benefits UI for offer page

no refs
This commit is contained in:
Rishabh 2021-10-18 14:24:12 +05:30
parent 6e8e5e27bb
commit 24f087ddf2

View file

@ -301,7 +301,7 @@ export default class OfferPage extends React.Component {
renderBenefits({product}) {
const benefits = product.benefits || [];
if (!benefits) {
if (!benefits?.length) {
return;
}
const benefitsUI = benefits.map((benefit, idx) => {