diff options
Diffstat (limited to 'app/client/auth/auth.gate.js')
| -rw-r--r-- | app/client/auth/auth.gate.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/client/auth/auth.gate.js b/app/client/auth/auth.gate.js index 4890864..087dfc6 100644 --- a/app/client/auth/auth.gate.js +++ b/app/client/auth/auth.gate.js @@ -44,11 +44,11 @@ class AuthGate extends Component { if (!this.props.auth.initialized) { return <div className='loading'>Loading</div> } - if (this.props.auth.isAuthenticated) return children + if (this.props.auth.isAuthenticated) return <div>{this.props.children}</div> return <AuthRouter {...this.props} /> } componentDidMount(){ - this.props.actions.checkin(history) + this.props.actions.checkin() } } |
