fix: download backup later in the change password process

This commit is contained in:
Baptiste Grob
2021-03-03 14:30:24 +01:00
parent a22a95e928
commit 9541886a2c
3 changed files with 7 additions and 3 deletions

View File

@@ -173,12 +173,13 @@ class PasswordWizardCtrl extends PureViewCtrl<Props, State> implements PasswordW
}
async processPasswordChange() {
await this.application.downloadBackup();
await this.setState({
lockContinue: true,
processing: true
});
await this.setFormDataState({
status: "Processing encryption keys..."
status: "Processing encryption keys"
});
const newPassword = this.props.securityUpdate
? this.state.formData.currentPassword