Merge branch 'main' of https://github.com/RonyVidaur/social-app into RonyVidaur-main
commit
57559ab6ca
|
@ -42,10 +42,8 @@ export function Step2({
|
||||||
const {isMobile} = useWebMediaQueries()
|
const {isMobile} = useWebMediaQueries()
|
||||||
|
|
||||||
const onPressRequest = React.useCallback(() => {
|
const onPressRequest = React.useCallback(() => {
|
||||||
if (
|
const phoneNumber = parsePhoneNumber(uiState.verificationPhone, uiState.phoneCountry)
|
||||||
uiState.verificationPhone.length >= 9 &&
|
if (phoneNumber && phoneNumber.isValid()) {
|
||||||
parsePhoneNumber(uiState.verificationPhone, uiState.phoneCountry)
|
|
||||||
) {
|
|
||||||
requestVerificationCode({uiState, uiDispatch, _})
|
requestVerificationCode({uiState, uiDispatch, _})
|
||||||
} else {
|
} else {
|
||||||
uiDispatch({
|
uiDispatch({
|
||||||
|
|
Loading…
Reference in New Issue