From 14059792284281a403e89b5c69961a318d5be612 Mon Sep 17 00:00:00 2001 From: Juan P Lopez Date: Tue, 11 Jun 2024 09:49:24 -0500 Subject: [PATCH] chore: update waiting for code time --- app/screens/phone-auth-screen/phone-login-validation.tsx | 3 ++- .../phone-auth-screen/phone-registration-validation.tsx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/screens/phone-auth-screen/phone-login-validation.tsx b/app/screens/phone-auth-screen/phone-login-validation.tsx index 377f7eace7..d9b33f3f9d 100644 --- a/app/screens/phone-auth-screen/phone-login-validation.tsx +++ b/app/screens/phone-auth-screen/phone-login-validation.tsx @@ -199,7 +199,8 @@ export const PhoneLoginValidationScreen: React.FC(30) + // Wait 2.5 minutes before allowing another code request + const [secondsRemaining, setSecondsRemaining] = useState(150) const { phone, channel } = route.params const { theme: { colors }, diff --git a/app/screens/phone-auth-screen/phone-registration-validation.tsx b/app/screens/phone-auth-screen/phone-registration-validation.tsx index eac227eb9c..6c4bba8df8 100644 --- a/app/screens/phone-auth-screen/phone-registration-validation.tsx +++ b/app/screens/phone-auth-screen/phone-registration-validation.tsx @@ -172,7 +172,8 @@ export const PhoneRegistrationValidateScreen: React.FC< const [phoneValidate] = useUserPhoneRegistrationValidateMutation() const [code, _setCode] = useState("") - const [secondsRemaining, setSecondsRemaining] = useState(30) + // Wait 2.5 minutes before allowing another code request + const [secondsRemaining, setSecondsRemaining] = useState(150) const { phone, channel } = route.params const {