|
@@ -14,6 +14,7 @@ import { styled } from "@mui/material";
|
14
|
14
|
import { useSelector, useDispatch } from "react-redux";
|
15
|
15
|
import { fetchProducts } from "../../redux/slices/productSlice";
|
16
|
16
|
import { useNavigate } from "react-router-dom";
|
|
17
|
+import defaultImage from "../../assets/images/default.png"
|
17
|
18
|
|
18
|
19
|
//UTIL FUNCTION
|
19
|
20
|
function getAllTags(data) {
|
|
@@ -429,7 +430,7 @@ const ProductList = ({ size = 99999 }) => {
|
429
|
430
|
let minPriceCurrency = minVariantPrice.currencyCode;
|
430
|
431
|
let maxPrice = maxVariantPrice.amount;
|
431
|
432
|
let maxPriceCurrency = maxVariantPrice.currencyCode;
|
432
|
|
- let img_url = images[0]?.url;
|
|
433
|
+ let img_url = images[0]?.url || defaultImage;
|
433
|
434
|
let collection_name = collections[0]?.title;
|
434
|
435
|
|
435
|
436
|
if (index < size) {
|