mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 01:25:17 +01:00
avoid dispatcherror when switching to signup
This commit is contained in:
parent
0d6e82a45d
commit
bbae33a40f
@ -55,7 +55,7 @@ let SignupForm = React.createClass({
|
||||
|
||||
// if user is already logged in, redirect him to piece list
|
||||
if(this.state.currentUser && this.state.currentUser.email) {
|
||||
this.transitionTo('pieces');
|
||||
window.setTimeout(() => this.transitionTo('pieces'));
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user