diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-09-17 02:25:36 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-09-17 02:25:36 +0200 |
| commit | 4c18946614657a9f8955408e514172a74eacc28e (patch) | |
| tree | 1fa92e5e7f798203d40e846bd8577b0459af1fcd /app/client/auth/auth.gate.js | |
| parent | 7ef59901e08b6610f134c696876695cf52061f48 (diff) | |
logging i
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() } } |
