Skip to content

Commit

Permalink
fix: use thumbnail as featured image
Browse files Browse the repository at this point in the history
  • Loading branch information
VariableVic committed May 11, 2023
1 parent 52a1ddd commit 1a0c2eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/medusa/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ const reshapeProduct = (product: MedusaProduct): Product => {
const tags = product.tags?.map((tag) => tag.value) || [];
const descriptionHtml = product.description ?? '';
const featuredImage = {
url: product.images?.[0]?.url ?? '',
altText: product.images?.[0]?.id ?? ''
url: product.thumbnail ?? '',
altText: product.title ?? ''
};
const availableForSale = product.variants?.[0]?.purchasable || true;
const variants = product.variants.map((variant) =>
Expand Down

0 comments on commit 1a0c2eb

Please sign in to comment.