mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-05-18 13:28:12 -04:00
Fix unlock page flow (#771)
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user