Merge branch 'main' of https://github.com/RonyVidaur/social-app into RonyVidaur-main

zio/stable
Paul Frazee 2024-02-06 09:13:19 -08:00
commit 57559ab6ca
1 changed files with 2 additions and 4 deletions

View File

@ -42,10 +42,8 @@ export function Step2({
const {isMobile} = useWebMediaQueries()
const onPressRequest = React.useCallback(() => {
if (
uiState.verificationPhone.length >= 9 &&
parsePhoneNumber(uiState.verificationPhone, uiState.phoneCountry)
) {
const phoneNumber = parsePhoneNumber(uiState.verificationPhone, uiState.phoneCountry)
if (phoneNumber && phoneNumber.isValid()) {
requestVerificationCode({uiState, uiDispatch, _})
} else {
uiDispatch({