mirror of
https://github.com/vercel/commerce.git
synced 2025-05-18 23:46:58 +00:00
use minPrice for display price
Signed-off-by: Loan Laux <loan@outgrow.io>
This commit is contained in:
parent
76bb0c7e5d
commit
b5559cc492
@ -139,7 +139,7 @@ export function normalizeProduct(productNode: CatalogItemProduct): Product {
|
|||||||
images: media?.length ? normalizeProductImages(media, title ?? '') : [],
|
images: media?.length ? normalizeProductImages(media, title ?? '') : [],
|
||||||
vendor: product.vendor,
|
vendor: product.vendor,
|
||||||
price: {
|
price: {
|
||||||
value: pricing[0]?.price ?? 0,
|
value: pricing[0]?.minPrice ?? 0,
|
||||||
currencyCode: pricing[0]?.currency.code,
|
currencyCode: pricing[0]?.currency.code,
|
||||||
},
|
},
|
||||||
variants: variants?.length ? normalizeProductVariants(variants) : [],
|
variants: variants?.length ? normalizeProductVariants(variants) : [],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user