chore: refacto
This commit is contained in:
@@ -240,7 +240,7 @@ function ProductDetail() {
|
||||
<div className="product-detail-content">
|
||||
<div className={`product-image-section ${isOutOfStock ? "out-of-stock" : ""}`}>
|
||||
<img
|
||||
src={product.image || ""}
|
||||
src={product.media?.find(m => m.type === "image")?.url || ""}
|
||||
alt={product.name}
|
||||
className="product-detail-image"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user