mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 14:03:48 +03:00
Fixed empty benefits UI for offer page
no refs
This commit is contained in:
parent
6e8e5e27bb
commit
24f087ddf2
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user