1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 01:25:17 +01:00

fix redirect

This commit is contained in:
diminator 2015-10-01 15:38:37 +02:00
parent acd29b0cbe
commit 5f201ad76a
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ let LoginForm = React.createClass({
componentDidMount() {
UserStore.listen(this.onChange);
let { redirect } = this.getQuery();
if (redirect !== 'login'){
if (redirect && redirect !== 'login'){
this.transitionTo(redirect, null, this.getQuery());
}
},

View File

@ -42,7 +42,7 @@ let SignupForm = React.createClass({
componentDidMount() {
UserStore.listen(this.onChange);
let { redirect } = this.getQuery();
if (redirect !== 'signup'){
if (redirect && redirect !== 'signup'){
this.transitionTo(redirect, null, this.getQuery());
}
},