From 3fa6d7cde7f52ed6cb5b6928d129ad7ac04049ce Mon Sep 17 00:00:00 2001 From: Marcos Rodriguez Velez Date: Fri, 24 May 2024 16:58:10 -0400 Subject: [PATCH] REF: Value should be reset to false in case of keychain wipe --- screen/UnlockWith.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/screen/UnlockWith.tsx b/screen/UnlockWith.tsx index 38298213d..841a35b32 100644 --- a/screen/UnlockWith.tsx +++ b/screen/UnlockWith.tsx @@ -55,6 +55,10 @@ const UnlockWith: React.FC = () => { const { setWalletsInitialized, isStorageEncrypted, startAndDecrypt } = useStorage(); const { deviceBiometricType, unlockWithBiometrics, isBiometricUseCapableAndEnabled, isBiometricUseEnabled } = useBiometrics(); + useEffect(() => { + setWalletsInitialized(false); + }, [setWalletsInitialized]); + const successfullyAuthenticated = useCallback(() => { setWalletsInitialized(true); isUnlockingWallets.current = false;