Skip to content

Commit

Permalink
Merge pull request #83 from MakairaIO/fix-missing-images-error
Browse files Browse the repository at this point in the history
fix(shop-adapter-shopify): make featured image optional
  • Loading branch information
Cyklan authored Oct 26, 2022
2 parents bfbd350 + 77c6d0e commit d157366
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export function lineItemsToMakairaCartItems(
return lineItems.edges.map(({ node }) => ({
product: {
id: node.variant?.id ?? '',
images: node.variant?.product.featuredImage.url
? [node.variant?.product.featuredImage.url]
images: node.variant?.product.featuredImage?.url
? [node.variant?.product.featuredImage?.url]
: [],
price: node.variant?.priceV2.amount ?? 0,
title: node.title,
Expand Down

0 comments on commit d157366

Please sign in to comment.