diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-09-17 01:57:44 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-09-17 01:57:44 +0200 |
| commit | 7ef59901e08b6610f134c696876695cf52061f48 (patch) | |
| tree | edde6f9ca29ec2f804c3300402011536f8156f1e /app/client/auth/auth.gate.js | |
| parent | d2b4aaf625f10c659614d7326d8dc3e2e31ae0f3 (diff) | |
redirection
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 8bedfa9..4890864 100644 --- a/app/client/auth/auth.gate.js +++ b/app/client/auth/auth.gate.js @@ -23,8 +23,8 @@ class AuthRouter extends Component { <Route exact path='/login' component={Login} /> <Route exact path='/logout' component={Logout} /> <Route exact path='/signup' component={Signup} /> - <Route component={() => { - props.actions.setReturnTo(props.location.pathname) + <Route component={props => { + this.props.actions.setReturnTo(props.location.pathname) return ( <Redirect to="/login" /> ) |
