From 39b17194cfda734ca178449ddc03b0daa4175f39 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Wed, 1 Feb 2023 14:51:18 +0700 Subject: no message --- src/pages/index.js | 7 +++---- src/styles/globals.css | 1 - 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/pages/index.js b/src/pages/index.js index 5ad19bf7..5bab4ffe 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -58,7 +58,6 @@ export default function Home({ heroBanners }) { const currentCategoryId = categoryProductIds ? categoryProductIds[categoryProducts.length] : false; if (currentCategoryId) { const isAdded = categoryProducts.findIndex((categoryProduct) => categoryProduct.id == currentCategoryId); - console.log(isAdded); if (isAdded < 0) { const dataCategoryProducts = await apiOdoo('GET', `/api/v1/categories_homepage?id=${currentCategoryId}`); setCategoryProducts((categoryProducts) => ([ @@ -100,13 +99,13 @@ export default function Home({ heroBanners }) { } -
+

Produk Populer

- { categoryProducts?.map((categoryProduct) => ( -
+ { categoryProducts?.map((categoryProduct, index) => ( +