mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 06:25:57 +00:00
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() {
|
requireAuthentication() {
|
||||||
return !this.props.credentials.authenticating &&
|
return !(this.props.credentials.authenticating ||
|
||||||
!this.props.credentials.authenticated &&
|
this.props.credentials.authenticated) &&
|
||||||
this.props.credentials.token &&
|
this.props.credentials.token &&
|
||||||
this.props.credentials.host;
|
this.props.credentials.host;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user