Skip to content

Commit

Permalink
chore: update waiting for code time (#3294)
Browse files Browse the repository at this point in the history
  • Loading branch information
dolcalmi authored Jun 19, 2024
1 parent a894e18 commit 158e438
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/screens/phone-auth-screen/phone-login-validation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ export const PhoneLoginValidationScreen: React.FC<PhoneLoginValidationScreenProp
const isUpgradeFlow = currentLevel === AccountLevel.Zero

const [code, _setCode] = useState("")
const [secondsRemaining, setSecondsRemaining] = useState<number>(30)
// Wait 2.5 minutes before allowing another code request
const [secondsRemaining, setSecondsRemaining] = useState<number>(150)
const { phone, channel } = route.params
const {
theme: { colors },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ export const PhoneRegistrationValidateScreen: React.FC<
const [phoneValidate] = useUserPhoneRegistrationValidateMutation()

const [code, _setCode] = useState("")
const [secondsRemaining, setSecondsRemaining] = useState<number>(30)
// Wait 2.5 minutes before allowing another code request
const [secondsRemaining, setSecondsRemaining] = useState<number>(150)
const { phone, channel } = route.params

const {
Expand Down

0 comments on commit 158e438

Please sign in to comment.