Skip to content

Commit

Permalink
Fix bug not open app after unlock with biometric
Browse files Browse the repository at this point in the history
  • Loading branch information
dominhquang committed Aug 16, 2023
1 parent b03d663 commit a567f6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/screens/LockScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export const LockScreen = () => {
TouchID.authenticate(`Sign in with ${currentType}`, optionalConfigObject)
.then(() => {
unlockWithBiometric();
navigation.canGoBack() ? navigation.goBack() : navigation.navigate('Home');
})
.catch(() => {
setAuthMethod('pinCode');
Expand All @@ -64,7 +65,7 @@ export const LockScreen = () => {
.catch(() => setAuthMethod('pinCode'));
}
setAuthMethod(_authMethod);
}, [faceIdEnabled, unlockWithBiometric]);
}, [faceIdEnabled, navigation, unlockWithBiometric]);

useEffect(() => {
if (value.length === 6) {
Expand Down

0 comments on commit a567f6b

Please sign in to comment.