[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:
parent
564bb03038
commit
f2aa0ca65f
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue