From 0da569641b0f0b0c16226f64bde2af7d8d2f4aea Mon Sep 17 00:00:00 2001 From: Abin Toppo Date: Thu, 18 Sep 2025 16:40:41 +0530 Subject: [PATCH] Merge branch 'feature_redux' of https://git.zeptic.in/abintoppo_lincpay/CircleCollect into feature_profile --- src/screens/LoginScreen.tsx | 2 ++ src/screens/SplashScreen.tsx | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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;