mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-01-19 05:45:15 +01:00
FIX: Bio unlock error wouldnt be displayed
This commit is contained in:
parent
803a8b6dbf
commit
e28bcb0306
@ -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);
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user