From f2aa0ca65fa3f35fb6a40a66100cf861ecac3b78 Mon Sep 17 00:00:00 2001 From: Oscar Hinton Date: Thu, 23 Nov 2023 11:23:11 +0100 Subject: [PATCH] [PM-4087] Add missing await for native-messaging.service (#6708) We missed an await which caused the if statement to never be true. This might have had the effect of not showing a browser integration error message when attempting to unlock should biometrics for some reason be unavailable. --- apps/desktop/src/services/native-messaging.service.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/desktop/src/services/native-messaging.service.ts b/apps/desktop/src/services/native-messaging.service.ts index 3463cd4365..d4f465dca9 100644 --- a/apps/desktop/src/services/native-messaging.service.ts +++ b/apps/desktop/src/services/native-messaging.service.ts @@ -125,8 +125,7 @@ export class NativeMessagingService { switch (message.command) { case "biometricUnlock": { - // eslint-disable-next-line @typescript-eslint/no-misused-promises - if (!this.platformUtilService.supportsBiometric()) { + if (!(await this.platformUtilService.supportsBiometric())) { return this.send({ command: "biometricUnlock", response: "not supported" }, appId); }