Browse Source

auto redirect

master
azri 1 week ago
parent
commit
4738c850a5
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/pages/Products/index.jsx

+ 3
- 1
src/pages/Products/index.jsx View File

@@ -20,7 +20,9 @@ const Products = () => {
20 20
         setCollection(selectCollection)
21 21
       }
22 22
 
23
-    } 
23
+    }else{
24
+      window.location.href = "/"
25
+    }
24 26
   }, [])
25 27
 
26 28
   return (

Loading…
Cancel
Save