mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 01:25:17 +01:00
fix redirect
This commit is contained in:
parent
acd29b0cbe
commit
5f201ad76a
@ -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());
|
||||
}
|
||||
},
|
||||
|
@ -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());
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user