FIX: Bio unlock error wouldnt be displayed

This commit is contained in:
Marcos Rodriguez Velez 2024-02-21 10:45:46 -04:00
parent 803a8b6dbf
commit e28bcb0306
No known key found for this signature in database
GPG Key ID: 6030B2F48CCE86D7

View File

@ -83,6 +83,7 @@ const Biometric = function () {
Biometric.unlockWithBiometrics = async () => {
const isDeviceBiometricCapable = await Biometric.isDeviceBiometricCapable();
console.warn('Biometric.unlockWithBiometrics isDeviceBiometricCapable unlockWithBiometrics', isDeviceBiometricCapable);
if (isDeviceBiometricCapable) {
return new Promise(resolve => {
rnBiometrics
@ -97,7 +98,7 @@ const Biometric = function () {
})
.catch((error: Error) => {
console.log('Biometrics authentication error');
console.log(error);
presentAlert({ message: error.message });
resolve(false);
});
});