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) => {