Browse Source

feat module 1,2,4 : product type display based on menu

master
nadia 1 day ago
parent
commit
efe33427ad
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      src/components/ProductType/ProductType.jsx

+ 3
- 3
src/components/ProductType/ProductType.jsx View File

@@ -49,9 +49,9 @@ const ProductType = ({ title, img_url, clickable = true }) => {
49 49
           sessionStorage.setItem('amber-select-product-type', productTypeValue)
50 50
           sessionStorage.removeItem('amber-select-collection')
51 51
           sessionStorage.removeItem('amber-select-collections')
52
-          if (title?.trim()?.toUpperCase() === "ESSENTIALS") {
53
-            sessionStorage.setItem('amber-select-collections', JSON.stringify(["COSMETICS", "HAND & BODY LOTION"]))
54
-          }
52
+          // if (title?.trim()?.toUpperCase() === "ESSENTIALS") {
53
+          //   sessionStorage.setItem('amber-select-collections', JSON.stringify(["COSMETICS", "HAND & BODY LOTION"]))
54
+          // }
55 55
           window.location.href = '/products'
56 56
         } : undefined}
57 57
       >

Loading…
Cancel
Save