diff --git a/apps/mobile-app/app/unlock.tsx b/apps/mobile-app/app/unlock.tsx index 767ddcb06..b545defdc 100644 --- a/apps/mobile-app/app/unlock.tsx +++ b/apps/mobile-app/app/unlock.tsx @@ -20,11 +20,11 @@ import Logo from '@/assets/images/logo.svg'; * Unlock screen. */ export default function UnlockScreen() : React.ReactNode { - const { isLoggedIn, username, isFaceIDEnabled } = useAuth(); + const { isLoggedIn, username, isBiometricsEnabled } = useAuth(); const { testDatabaseConnection } = useDb(); const [password, setPassword] = useState(''); const [isLoading, setIsLoading] = useState(false); - const [isFaceIDAvailable, setIsFaceIDAvailable] = useState(false); + const [isBiometricsAvailable, setIsBiometricsAvailable] = useState(false); const colors = useColors(); const webApi = useWebApi(); const { getBiometricDisplayName } = useAuth(); @@ -51,15 +51,15 @@ export default function UnlockScreen() : React.ReactNode { * Fetch the biometric config. */ const fetchBiometricConfig = async () : Promise => { - const enabled = await isFaceIDEnabled(); - setIsFaceIDAvailable(enabled); + const enabled = await isBiometricsEnabled(); + setIsBiometricsAvailable(enabled); const displayName = await getBiometricDisplayName(); setBiometricDisplayName(displayName); }; fetchBiometricConfig(); - }, [isFaceIDEnabled, getKeyDerivationParams, getBiometricDisplayName]); + }, [isBiometricsEnabled, getKeyDerivationParams, getBiometricDisplayName]); /** * Handle the unlock. @@ -124,9 +124,9 @@ export default function UnlockScreen() : React.ReactNode { }; /** - * Handle the face ID retry. + * Handle the biometrics retry. */ - const handleFaceIDRetry = async () : Promise => { + const handleBiometricsRetry = async () : Promise => { router.replace('/reinitialize'); }; @@ -327,10 +327,10 @@ export default function UnlockScreen() : React.ReactNode { - {isFaceIDAvailable && ( + {isBiometricsAvailable && ( Try {biometricDisplayName} Again