From e0e7315d444ccd033652a664e2bbaeb4325e0a19 Mon Sep 17 00:00:00 2001 From: Leendert de Borst Date: Wed, 7 May 2025 22:44:45 +0200 Subject: [PATCH] Fix unlock page flow (#771) --- apps/mobile-app/app/reinitialize.tsx | 7 ++----- apps/mobile-app/app/unlock.tsx | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/apps/mobile-app/app/reinitialize.tsx b/apps/mobile-app/app/reinitialize.tsx index 79413579b..4ef12041a 100644 --- a/apps/mobile-app/app/reinitialize.tsx +++ b/apps/mobile-app/app/reinitialize.tsx @@ -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(); diff --git a/apps/mobile-app/app/unlock.tsx b/apps/mobile-app/app/unlock.tsx index a85c324bb..662da434b 100644 --- a/apps/mobile-app/app/unlock.tsx +++ b/apps/mobile-app/app/unlock.tsx @@ -98,7 +98,7 @@ export default function UnlockScreen() : React.ReactNode { * Handle the face ID retry. */ const handleFaceIDRetry = async () : Promise => { - router.replace('/'); + router.replace('/reinitialize'); }; const styles = StyleSheet.create({