Fix unlock page flow (#771)

This commit is contained in:
Leendert de Borst
2025-05-07 22:44:45 +02:00
parent 4ed6b30256
commit e0e7315d44
2 changed files with 3 additions and 6 deletions

View File

@@ -98,6 +98,7 @@ export default function ReinitializeScreen() : React.ReactNode {
return;
}
}
router.replace('/unlock');
} catch {
router.replace('/unlock');
@@ -117,7 +118,7 @@ export default function ReinitializeScreen() : React.ReactNode {
}
// First perform vault sync
const syncSuccess = await syncVault({
await syncVault({
initialSync: true,
/**
* Handle the status update.
@@ -163,10 +164,6 @@ export default function ReinitializeScreen() : React.ReactNode {
);
}
});
if (!syncSuccess) {
router.replace('/unlock');
}
};
initialize();

View File

@@ -98,7 +98,7 @@ export default function UnlockScreen() : React.ReactNode {
* Handle the face ID retry.
*/
const handleFaceIDRetry = async () : Promise<void> => {
router.replace('/');
router.replace('/reinitialize');
};
const styles = StyleSheet.create({