1
0
mirror of https://github.com/bitwarden/jslib synced 2025-12-17 00:33:17 +00:00

Update base export component for userVerificationService changes (#552)

* Use new try/catch pattern in export.component

* Set initial value in VerifyMasterPass component
This commit is contained in:
Thomas Rittson
2021-11-16 19:43:37 +10:00
committed by GitHub
parent 386903f5a9
commit 720967475b
2 changed files with 17 additions and 12 deletions

View File

@@ -69,7 +69,10 @@ export class ExportComponent implements OnInit {
}
const secret = this.exportForm.get('secret').value;
if (!await this.userVerificationService.verifyUser(secret)) {
try {
await this.userVerificationService.verifyUser(secret);
} catch (e) {
this.platformUtilsService.showToast('error', this.i18nService.t('errorOccurred'), e.message);
return;
}