update LoginPage component and test pseudocode

This commit is contained in:
John Mitchell
2018-10-24 21:35:43 -04:00
parent 3e9a85a58b
commit 2245d6a22e
2 changed files with 10 additions and 22 deletions

View File

@@ -63,9 +63,9 @@ class LoginPage extends Component {
const { username, password, loading, error } = this.state;
const { logo, loginInfo } = this.props;
// if (api.isAuthenticated()) {
// return (<Redirect to="/" />);
// }
if (api.isAuthenticated()) {
return (<Redirect to="/" />);
}
return (
<Login