don't return Layout while authenticating

This commit is contained in:
Michael Bradley, Jr 2018-10-19 20:05:40 -05:00
parent 2088624d83
commit 8b23d012eb
1 changed files with 2 additions and 0 deletions

View File

@ -103,6 +103,8 @@ class AppContainer extends Component {
renderBody() { renderBody() {
if (this.shouldRenderLogin()) { if (this.shouldRenderLogin()) {
return <Login credentials={this.props.credentials} authenticate={this.props.authenticate} error={this.props.authenticationError} />; return <Login credentials={this.props.credentials} authenticate={this.props.authenticate} error={this.props.authenticationError} />;
} else if (this.props.credentials.authenticating) {
return <div></div>;
} }
return ( return (
<Layout location={this.props.location} <Layout location={this.props.location}