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:
parent
6e8e5e27bb
commit
24f087ddf2
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue