1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-11 14:04:03 +00:00

fixed promise

This commit is contained in:
Anders Åberg
2024-10-10 13:32:34 +02:00
parent da6c9a2c18
commit e97c7a2810

View File

@@ -1,5 +1,6 @@
import { Component } from "@angular/core";
import { Router } from "@angular/router";
import { JslibModule } from "@bitwarden/angular/jslib.module";
import { DesktopSettingsService } from "../../platform/services/desktop-settings.service";
@@ -15,7 +16,7 @@ export type BrowserSyncVerificationDialogParams = {
style="background:white; display:flex; justify-content: center; align-items: center; flex-direction: column"
>
<img
src="../resources/Frame2101.svg"
src="../resources/frame2101.svg"
class="mb-4 logo"
alt="Bitwarden"
width="440"
@@ -34,7 +35,7 @@ export class PasskeysComponent {
) {}
async closeModal() {
this.router.navigate(["/"]);
await this.router.navigate(["/"]);
await this.desktopSettingsService.setInModalMode(false);
}
}