Select server fix login options transition (#2984)

This commit is contained in:
Elias Nahum 2019-07-18 10:56:31 -04:00 committed by GitHub
parent 5abfb66b78
commit c226a3a546
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -107,15 +107,15 @@ export default class SelectServer extends PureComponent {
if (this.state.connected && this.props.hasConfigAndLicense && !(prevState.connected && prevProps.hasConfigAndLicense)) {
if (LocalConfig.EnableMobileClientUpgrade) {
this.props.actions.setLastUpgradeCheck();
const {currentVersion, minVersion, latestVersion} = prevProps;
const {currentVersion, minVersion, latestVersion} = this.props;
const upgradeType = checkUpgradeType(currentVersion, minVersion, latestVersion);
if (isUpgradeAvailable(upgradeType)) {
this.handleShowClientUpgrade(upgradeType);
} else {
this.handleLoginOptions(prevProps);
this.handleLoginOptions(this.props);
}
} else {
this.handleLoginOptions(prevProps);
this.handleLoginOptions(this.props);
}
}
}