remove base catch swallowing errors

This commit is contained in:
Jake Fink 2024-05-03 16:59:32 -04:00
parent e928718f03
commit 72c48c9520
No known key found for this signature in database
GPG Key ID: FD482F8453480035
1 changed files with 1 additions and 2 deletions

View File

@ -272,6 +272,7 @@ export class BaseLoginDecryptionOptionsComponent implements OnInit, OnDestroy {
// this.loading to support clients without async-actions-support
this.loading = true;
// errors are caught in base components
try {
const { publicKey, privateKey } = await this.cryptoService.initAccount();
const keysRequest = new KeysRequest(publicKey, privateKey.encryptedString);
@ -288,8 +289,6 @@ export class BaseLoginDecryptionOptionsComponent implements OnInit, OnDestroy {
if (this.rememberDeviceForm.value.rememberDevice) {
await this.deviceTrustService.trustDevice(this.activeAccountId);
}
} catch (error) {
this.validationService.showError(error);
} finally {
this.loading = false;
}