Skip to content

Commit d986afa

Browse files
committed
fix: fix variants check
1 parent f91bbae commit d986afa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/templates/json/JSONTemplate.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export class JSONTemplate {
8585
renderOffers() {
8686
const image = this.product.images?.[0]?.url
8787
?? findProductImage(this.product, this.variants)?.url;
88-
const configurableProduct = this.variants && this.variants.length > 0;
88+
const configurableProduct = this.variants?.length > 0;
8989
const offers = configurableProduct ? this.variants : [this.product];
9090
return {
9191
offers: [

0 commit comments

Comments
 (0)