diff --git a/src/popup/vault/add-edit.component.ts b/src/popup/vault/add-edit.component.ts index 2f1a06b597..eab0f8567f 100644 --- a/src/popup/vault/add-edit.component.ts +++ b/src/popup/vault/add-edit.component.ts @@ -101,9 +101,11 @@ export class AddEditComponent extends BaseAddEditComponent implements OnInit { return confirmed; } - async delete() { - if (await super.delete()) { + async delete(): Promise { + const confirmed = await super.delete(); + if (confirmed) { this.router.navigate(['/tabs/vault']); } + return confirmed; } }