fix(pro): Don't refresh identity unless one is present

This commit is contained in:
Ben Gotow 2016-05-27 15:37:44 -07:00
parent cf0ad099e1
commit 147bb38c6a
2 changed files with 4 additions and 1 deletions

View file

@ -21,7 +21,7 @@ class InitialLoadingCover extends React.Component {
componentDidMount() {
this._slowTimeout = setTimeout(() => {
this.setState({slow: true});
}, 2500);
}, 3500);
}
componentWillUnmount() {

View file

@ -85,6 +85,9 @@ class IdentityStore extends NylasStore {
}
refreshStatus = () => {
if (!this._identity || !this._identity.token) {
return;
}
request({
method: 'GET',
url: `${this.URLRoot}/n1/user`,