Browse Source

fix random relaod

master
azri 1 month ago
parent
commit
df3edcc5d9
1 changed files with 0 additions and 1 deletions
  1. 0
    1
      src/components/SideCart/SideCart.jsx

+ 0
- 1
src/components/SideCart/SideCart.jsx View File

15
 
15
 
16
   useEffect(() => {
16
   useEffect(() => {
17
 
17
 
18
-    if (cart?.lines?.nodes?.length == 0) window.location.href = "/"
19
     setCartProducts(cart?.lines?.nodes || [])
18
     setCartProducts(cart?.lines?.nodes || [])
20
 
19
 
21
   }, [cart])
20
   }, [cart])

Loading…
Cancel
Save