make requireAuthentication clearer
if authenticating or authenticated, do not require authentication
This commit is contained in:
parent
8add299f53
commit
8d684bf1ef
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue