diff --git a/src/App.tsx b/src/App.tsx index 63ed8053..abaf1a7a 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -59,6 +59,7 @@ function App() { } /> } /> + } /> } /> diff --git a/src/pages/category/index.tsx b/src/pages/category/index.tsx index d9bc78f2..695bc75b 100644 --- a/src/pages/category/index.tsx +++ b/src/pages/category/index.tsx @@ -44,7 +44,7 @@ const Category: React.FC = () => { setCategoryObj(data.results[0]?.category); }) .catch(() => { - navigate('/упс'); + navigate('/404'); }) .finally(() => { setIsLoading(false); diff --git a/src/pages/product/index.tsx b/src/pages/product/index.tsx index 0c34519e..614021be 100644 --- a/src/pages/product/index.tsx +++ b/src/pages/product/index.tsx @@ -41,11 +41,11 @@ const Product: React.FC = () => { .then((data) => setProductItem(data)) .catch((error) => { console.log(error); - navigate('/упс'); + navigate('/404'); }); } else { console.log('ID is undefined'); - navigate('/упс'); + navigate('/404'); } }, [id, navigate]);