Skip to content

Commit

Permalink
✨ available normalisation
Browse files Browse the repository at this point in the history
  • Loading branch information
DuvCharles committed Nov 14, 2023
1 parent 8edee04 commit 452ae5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sylius/normalizer/product-normalizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const normalizeProduct = (product: SyliusProduct): Product => ({
images: product.images.map((image) => normalizeProductImage(image)),
id: product.id.toString(),
handle: product.slug,
availableForSale: product.enabled,
availableForSale: product.variants.some((variant) => variant.inStock),
title: product.name,
description: product.shortDescription,
descriptionHtml: product.description,
Expand Down

0 comments on commit 452ae5f

Please sign in to comment.