added translated description

This commit is contained in:
Nouman Tahir 2022-07-26 16:12:18 +05:00
parent a9df0aa254
commit df8df111e2
2 changed files with 6 additions and 2 deletions

View File

@ -420,7 +420,8 @@
"forgot_text": "Oh, I forgot it...",
"pin_not_matched":"PIN do not match, Please try again.",
"attempts_postfix":"failed attempt(s)",
"message_reset_warning":"User data will be wiped on next failed attempt"
"message_reset_warning":"User data will be wiped on next failed attempt",
"biometric_desc":"Scan your biometric to continue"
},
"alert": {
"success": "Success!",

View File

@ -102,6 +102,7 @@ class PinCodeContainer extends Component {
_processBiometric = async () => {
try {
const {
intl,
pinCodeParams: { isReset },
applicationPinCode,
isBiometricEnabled,
@ -114,7 +115,9 @@ class PinCodeContainer extends Component {
const biometryType = await FingerprintScanner.isSensorAvailable();
console.log('biometryType is => ', biometryType);
await FingerprintScanner.authenticate();
await FingerprintScanner.authenticate({
description: intl.formatMessage({ id: 'pincode.biometric_desc' }),
});
console.log('successfully passed biometric auth');
//code gets here means biometeric succeeded