Fixed image issue

This commit is contained in:
Luis Alvarez 2021-06-08 17:48:34 -05:00
parent cd182f8c59
commit b4eba53be0

View File

@ -48,7 +48,7 @@ const ProductCard: FC<Props> = ({
{product?.images && ( {product?.images && (
<Image <Image
quality="85" quality="85"
src={product.images[0].url || placeholderImg} src={product.images[0]?.url || placeholderImg}
alt={product.name || 'Product Image'} alt={product.name || 'Product Image'}
height={320} height={320}
width={320} width={320}