1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 23:03:32 +00:00

[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.
This commit is contained in:
Oscar Hinton
2023-11-23 11:23:11 +01:00
committed by GitHub
parent 564bb03038
commit f2aa0ca65f

View File

@@ -125,8 +125,7 @@ export class NativeMessagingService {
switch (message.command) { switch (message.command) {
case "biometricUnlock": { case "biometricUnlock": {
// eslint-disable-next-line @typescript-eslint/no-misused-promises if (!(await this.platformUtilService.supportsBiometric())) {
if (!this.platformUtilService.supportsBiometric()) {
return this.send({ command: "biometricUnlock", response: "not supported" }, appId); return this.send({ command: "biometricUnlock", response: "not supported" }, appId);
} }