mirror of
https://github.com/bitwarden/browser.git
synced 2024-09-27 04:03:00 +02:00
[PM-7004] Remove try/catch from submit method in verify-recover-delete-org.component.ts
This commit is contained in:
parent
0b191a27dd
commit
e59d4df5ee
@ -44,7 +44,6 @@ export class VerifyRecoverDeleteOrgComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
submit = async () => {
|
submit = async () => {
|
||||||
try {
|
|
||||||
const request = new OrganizationVerifyDeleteRecoverRequest(this.token);
|
const request = new OrganizationVerifyDeleteRecoverRequest(this.token);
|
||||||
await this.apiService.deleteUsingToken(this.orgId, request);
|
await this.apiService.deleteUsingToken(this.orgId, request);
|
||||||
this.platformUtilsService.showToast(
|
this.platformUtilsService.showToast(
|
||||||
@ -53,8 +52,5 @@ export class VerifyRecoverDeleteOrgComponent implements OnInit {
|
|||||||
this.i18nService.t("organizationDeletedDesc"),
|
this.i18nService.t("organizationDeletedDesc"),
|
||||||
);
|
);
|
||||||
await this.router.navigate(["/"]);
|
await this.router.navigate(["/"]);
|
||||||
} catch (e) {
|
|
||||||
this.logService.error(e);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user