From 8d684bf1ef52de26e28e0a4198ab9a480df52be3 Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Wed, 24 Oct 2018 14:35:40 -0500 Subject: [PATCH] make requireAuthentication clearer if authenticating or authenticated, do not require authentication --- embark-ui/src/containers/AppContainer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/embark-ui/src/containers/AppContainer.js b/embark-ui/src/containers/AppContainer.js index 2c061442..7121818e 100644 --- a/embark-ui/src/containers/AppContainer.js +++ b/embark-ui/src/containers/AppContainer.js @@ -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; }