diff --git a/src/screens/LoginScreen.tsx b/src/screens/LoginScreen.tsx index 9e53fac..27c8a2a 100644 --- a/src/screens/LoginScreen.tsx +++ b/src/screens/LoginScreen.tsx @@ -54,6 +54,8 @@ export default function LoginScreen() { setLoading(true); try { const res = await axios.get(LOGIN_URL + mobile); + console.log("OTP sent response:", res) + if (res.data.statusCode === 200) { navigation.navigate("OtpVarify", { mobile }); } diff --git a/src/screens/SplashScreen.tsx b/src/screens/SplashScreen.tsx index e424cac..2fd28a6 100644 --- a/src/screens/SplashScreen.tsx +++ b/src/screens/SplashScreen.tsx @@ -21,7 +21,7 @@ const SplashScreen = () => { try { const credentials = await Keychain.getGenericPassword(); if (!credentials) { - Alert.alert("Error", "You are not logged in"); + return; } const token = credentials.password;