diff --git a/src/screens/UserLoginScreen.tsx b/src/screens/UserLoginScreen.tsx index afe2dbe..6a032a7 100644 --- a/src/screens/UserLoginScreen.tsx +++ b/src/screens/UserLoginScreen.tsx @@ -29,8 +29,9 @@ const UserLoginScreen: UnloggedUserStackScreenComponentProps<"userLoginScreen"> mutationFn: authenticateUser, onSuccess: (data) => { setAuthenticationData(data); - navigation.popToTop(); - navigation.replace("bottomTabs"); + // navigation.popToTop(); + // navigation.replace("bottomTabs"); + navigation.navigate("bottomTabs"); }, // biome-ignore lint/suspicious/noExplicitAny: onError: (error: AxiosError) => { @@ -113,6 +114,7 @@ const UserLoginScreen: UnloggedUserStackScreenComponentProps<"userLoginScreen"> textVariants={"primary"} label="Se connecter" onPress={() => { + // navigation.popToTop(); // navigation.navigate("bottomTabs"); submit(); }}