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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user