mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-03 03:23:45 +08:00
fix(pro): Don't refresh identity unless one is present
This commit is contained in:
parent
cf0ad099e1
commit
147bb38c6a
2 changed files with 4 additions and 1 deletions
|
@ -21,7 +21,7 @@ class InitialLoadingCover extends React.Component {
|
|||
componentDidMount() {
|
||||
this._slowTimeout = setTimeout(() => {
|
||||
this.setState({slow: true});
|
||||
}, 2500);
|
||||
}, 3500);
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
|
|
|
@ -85,6 +85,9 @@ class IdentityStore extends NylasStore {
|
|||
}
|
||||
|
||||
refreshStatus = () => {
|
||||
if (!this._identity || !this._identity.token) {
|
||||
return;
|
||||
}
|
||||
request({
|
||||
method: 'GET',
|
||||
url: `${this.URLRoot}/n1/user`,
|
||||
|
|
Loading…
Reference in a new issue