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
           sessionStorage.setItem('amber-select-product-type', productTypeValue)
49
           sessionStorage.setItem('amber-select-product-type', productTypeValue)
50
           sessionStorage.removeItem('amber-select-collection')
50
           sessionStorage.removeItem('amber-select-collection')
51
           sessionStorage.removeItem('amber-select-collections')
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
           window.location.href = '/products'
55
           window.location.href = '/products'
56
         } : undefined}
56
         } : undefined}
57
       >
57
       >

Loading…
Cancel
Save