mirror of
https://github.com/bitwarden/web
synced 2026-01-06 18:43:18 +00:00
hasEncKey checks
This commit is contained in:
@@ -30,8 +30,8 @@ export class ChangeEmailComponent {
|
||||
private cryptoService: CryptoService, private messagingService: MessagingService) { }
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user