summaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-rw-r--r--src/components/productCard.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/productCard.js b/src/components/productCard.js
index dc292316..6e703670 100644
--- a/src/components/productCard.js
+++ b/src/components/productCard.js
@@ -7,7 +7,7 @@ export default function productCard({ data }) {
return (
<div className="product-card">
<Link href={'/shop/product/' + createSlug(product.name, product.id)} className="block">
- <img src={product.image} alt={product.name} className="product-card__image" loading="lazy" />
+ <img src={product.image ? product.image : '/images/noimage.jpeg'} alt={product.name} className="product-card__image" loading="lazy" />
</Link>
<div className="product-card__description">
<div>
@@ -16,9 +16,9 @@ export default function productCard({ data }) {
) : (
<span className="product-card__brand">-</span>
)}
- <a href={'/shop/product/' + createSlug(product.name, product.id)} className="product-card__title wrap-line-ellipsis-3">
+ <Link href={'/shop/product/' + createSlug(product.name, product.id)} className="product-card__title wrap-line-ellipsis-3">
{product.name}
- </a>
+ </Link>
</div>
<div>
{product.lowest_price.discount_percentage > 0 ? (