mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
fix checkout url, product w/ no images error
This commit is contained in:
@@ -60,7 +60,7 @@ const normalizeProductOption = ({
|
||||
}
|
||||
|
||||
const normalizeProductImages = (images: SwellImage[]) => {
|
||||
if (!images) {
|
||||
if (!images || images.length < 1) {
|
||||
return [{ url: '/' }]
|
||||
}
|
||||
return images?.map(({ file, ...rest }: SwellImage) => ({
|
||||
|
@@ -7,7 +7,7 @@ const {
|
||||
const provider = commerce.provider || getProviderName()
|
||||
const isBC = provider === 'bigcommerce'
|
||||
const isShopify = provider === 'shopify'
|
||||
const isSwell = commerce.provider === 'swell'
|
||||
const isSwell = provider === 'swell'
|
||||
|
||||
module.exports = withCommerceConfig({
|
||||
commerce,
|
||||
|
Reference in New Issue
Block a user