Merge pull request #6605 from BlueWallet/one

REF: Value should be reset to false in case of keychain wipe
This commit is contained in:
GLaDOS 2024-05-24 22:49:47 +00:00 committed by GitHub
commit fdc65bdd95
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;