summaryrefslogtreecommitdiff
path: root/app/client/auth/auth.gate.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/client/auth/auth.gate.js')
-rw-r--r--app/client/auth/auth.gate.js4
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" />
)