We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f91bbae commit d986afaCopy full SHA for d986afa
src/templates/json/JSONTemplate.js
@@ -85,7 +85,7 @@ export class JSONTemplate {
85
renderOffers() {
86
const image = this.product.images?.[0]?.url
87
?? findProductImage(this.product, this.variants)?.url;
88
- const configurableProduct = this.variants && this.variants.length > 0;
+ const configurableProduct = this.variants?.length > 0;
89
const offers = configurableProduct ? this.variants : [this.product];
90
return {
91
offers: [
0 commit comments