make requireAuthentication clearer

if authenticating or authenticated, do not require authentication
This commit is contained in:
Michael Bradley, Jr 2018-10-24 14:35:40 -05:00
parent 8add299f53
commit 8d684bf1ef
1 changed files with 2 additions and 2 deletions

View File

@ -59,8 +59,8 @@ class AppContainer extends Component {
}
requireAuthentication() {
return !this.props.credentials.authenticating &&
!this.props.credentials.authenticated &&
return !(this.props.credentials.authenticating ||
this.props.credentials.authenticated) &&
this.props.credentials.token &&
this.props.credentials.host;
}