Use the safer way to set the logged in view state
parent
8f5e825cd5
commit
2e5b3ec0f1
|
@ -1186,10 +1186,7 @@ export default React.createClass({
|
||||||
* @param {string} teamToken
|
* @param {string} teamToken
|
||||||
*/
|
*/
|
||||||
_onLoggedIn: async function(teamToken) {
|
_onLoggedIn: async function(teamToken) {
|
||||||
this.setState({
|
this.setStateForNewView({view: VIEWS.LOGGED_IN});
|
||||||
view: VIEWS.LOGGED_IN,
|
|
||||||
});
|
|
||||||
|
|
||||||
if (teamToken) {
|
if (teamToken) {
|
||||||
// A team member has logged in, not a guest
|
// A team member has logged in, not a guest
|
||||||
this._teamToken = teamToken;
|
this._teamToken = teamToken;
|
||||||
|
|
Loading…
Reference in New Issue