diff --git a/components/product/ProductCard/ProductCard.tsx b/components/product/ProductCard/ProductCard.tsx index f23b01d35..c2e210367 100644 --- a/components/product/ProductCard/ProductCard.tsx +++ b/components/product/ProductCard/ProductCard.tsx @@ -34,7 +34,7 @@ const ProductCard: FC = ({ {product?.images && ( {product.name = ({ {product.name = ({ product }) => { const { price } = usePrice({ amount: product.price?.value, @@ -61,10 +63,10 @@ const WishlistCard: FC = ({ product }) => {
{product.images[0].alt
diff --git a/next.config.js b/next.config.js index d1d834442..607d4eba8 100644 --- a/next.config.js +++ b/next.config.js @@ -49,7 +49,7 @@ module.exports = withCommerceConfig({ source: '/search/:category', destination: '/search', }, - ].filter((x) => x) + ].filter(Boolean) }, }) diff --git a/pages/index.tsx b/pages/index.tsx index ed7613616..02142f3b0 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -49,15 +49,7 @@ export default function Home({ {products.slice(0, 3).map((product, i) => ( - + ))} {products.slice(0, 3).map((product, i) => ( - + ))} {/*