Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PM-5717] Fix calling methods on undefined in biometrics service #7559

Merged
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,15 @@
}

async init() {
return await this.platformSpecificService.init();
if (this.platformSpecificService) {
return await this.platformSpecificService.init();
}
}

async osSupportsBiometric() {
if (!this.platformSpecificService) {
return false;

Check warning on line 58 in apps/desktop/src/platform/main/biometric/biometrics.service.ts

View check run for this annotation

Codecov / codecov/patch

apps/desktop/src/platform/main/biometric/biometrics.service.ts#L58

Added line #L58 was not covered by tests
}
return await this.platformSpecificService.osSupportsBiometric();
}

Expand Down
Loading