diff --git a/src/components/Routes/Routes.tsx b/src/components/Routes/Routes.tsx index 266b9a11e2217c80c1a0043a34e75196bb68dc2f..a5c1b43a429265966d775277bcaf39f98fafcbd4 100644 --- a/src/components/Routes/Routes.tsx +++ b/src/components/Routes/Routes.tsx @@ -11,12 +11,7 @@ const Routes: React.FC = () => { return ( <Switch> - {user && ( - <> - <Redirect path="/" to="/editing" /> - <Redirect path="/login" to="/editing" /> - </> - )} + {user && <Redirect path="/login" to="/editing" />} <Route path="/login" component={Login} /> <PrivateRoute path="/editing" component={Editing} exact /> <PrivateRoute path="/settings" component={Settings} exact />