1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-21 11:35:34 +01: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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}