Browse Source

remove session collection

master
azri 1 week ago
parent
commit
ce4d70ab0f
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/components/Navbar/components/MobileNav/MobileNav.jsx

+ 1
- 0
src/components/Navbar/components/MobileNav/MobileNav.jsx View File

120
             disableGutters={true}
120
             disableGutters={true}
121
             onClick={() => {
121
             onClick={() => {
122
               sessionStorage.setItem('amber-select-product-type', productType)
122
               sessionStorage.setItem('amber-select-product-type', productType)
123
+              sessionStorage.removeItem('amber-select-collection')
123
               if (collection?.length == 0) window.location.href = `/products`;
124
               if (collection?.length == 0) window.location.href = `/products`;
124
             }}
125
             }}
125
             sx={{
126
             sx={{

Loading…
Cancel
Save