Initial Changes

This commit is contained in:
2025-03-01 15:29:32 +05:30
parent 12caeee710
commit e4d8b2cf58
20 changed files with 330 additions and 175 deletions

View File

@@ -15,7 +15,9 @@ const RelatedProductCards = ({ productId }) => {
const product = products?.find((pr) => pr.id == productId);
const relatedProducts = products?.filter(
(prod) => prod.product_category.id == product.id && prod.id != productId
(prod) =>
prod.product_category.id == product.product_category.id &&
prod.id != productId
);
if (relatedProducts.length == 0) {