mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26: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) => ({
|
||||
|
Reference in New Issue
Block a user