From 4f9a47e33854b75e5c2a584e98d8dc8fe951434b Mon Sep 17 00:00:00 2001 From: "guilhem.carron" <gcarron@grandlyon.com> Date: Fri, 13 Aug 2021 14:40:17 +0200 Subject: [PATCH] edit route --- src/components/Routes/Routes.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/components/Routes/Routes.tsx b/src/components/Routes/Routes.tsx index 266b9a11..a5c1b43a 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 /> -- GitLab