1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 16:23:44 +00:00

hasEncKey checks

This commit is contained in:
Kyle Spearrin
2018-07-12 17:09:09 -04:00
parent ba2debf577
commit 1dc4f851cb
4 changed files with 9 additions and 8 deletions

View File

@@ -28,8 +28,8 @@ export class ChangePasswordComponent {
private userService: UserService) { }
async submit() {
const hasKey = await this.cryptoService.hasKey();
if (!hasKey) {
const hasEncKey = await this.cryptoService.hasEncKey();
if (!hasEncKey) {
this.toasterService.popAsync('error', null, this.i18nService.t('updateKey'));
return;
}