Merge pull request #537 from mattermost/mm-2091

HOTFIX for 0.7.0 - MM-2091 Fix bad user being set on team creation causing Manage Team modal to not work.
This commit is contained in:
Christopher Speller
2015-09-02 08:19:40 -04:00
@@ -41,7 +41,7 @@ module.exports = React.createClass({
client.loginByEmail(teamSignup.team.name, teamSignup.team.email, teamSignup.user.password,
function(data) {
UserStore.setLastEmail(teamSignup.team.email);
UserStore.setCurrentUser(teamSignup.user);
UserStore.setCurrentUser(data);
if (this.props.hash > 0) {
BrowserStore.setGlobalItem(this.props.hash, JSON.stringify({wizard: 'finished'}));
}