[SG-646] [SG-647] Fix mac biometrics not working (#3436)

This commit is contained in:
Oscar Hinton 2022-09-02 14:57:00 +02:00 committed by GitHub
parent 39700b5db3
commit ef50055e32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -13,9 +13,8 @@ export default class BiometricDarwinMain implements BiometricMain {
await this.stateService.setBiometricText("unlockWithTouchId");
await this.stateService.setNoAutoPromptBiometricsText("autoPromptTouchId");
// eslint-disable-next-line
ipcMain.on("biometric", async (event: any, message: any) => {
event.returnValue = await this.authenticateBiometric();
ipcMain.handle("biometric", async () => {
return await this.authenticateBiometric();
});
}