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:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user