1
0
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:
diminator 2015-09-30 17:07:18 +02:00
parent 0d6e82a45d
commit bbae33a40f

View File

@ -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'));
}
},