Logout is working ^_^

This commit is contained in:
2019-10-07 20:46:28 -04:00
parent 8179b51844
commit 9eb4f603df
3 changed files with 23 additions and 22 deletions

View File

@@ -7,7 +7,7 @@ const AuthRoute = ({ component: Component, authenticated, ...rest }) => (
<Route
{...rest}
render={(props) =>
authenticated === true ? <Redirect to="/" /> : <Component {...props} />
authenticated === true ? <Redirect to="/home" /> : <Component {...props} />
}
/>
);