From 53c658d996c56fe28775319367bffa45dd7db641 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 17 Sep 2018 13:29:40 +0200 Subject: auth gate must have its own switch --- app/client/auth/auth.gate.js | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) (limited to 'app') diff --git a/app/client/auth/auth.gate.js b/app/client/auth/auth.gate.js index 2bbbc6d..6df1238 100644 --- a/app/client/auth/auth.gate.js +++ b/app/client/auth/auth.gate.js @@ -19,18 +19,22 @@ class AuthRouter extends Component {
- - - - - - { - this.props.actions.setReturnTo(props.location.pathname) - return ( - - ) - }} /> - + + + + + { + switch (props.location.pathname) { + case '/login': + case '/logout': + case '/signup': + return null; + } + this.props.actions.setReturnTo(props.location.pathname) + return ( + + ) + }} />
) -- cgit v1.2.3-70-g09d2