Merge branch 'RonyVidaur-main' into main
commit
b9e00afdb1
|
@ -42,10 +42,11 @@ export function Step2({
|
||||||
const {isMobile} = useWebMediaQueries()
|
const {isMobile} = useWebMediaQueries()
|
||||||
|
|
||||||
const onPressRequest = React.useCallback(() => {
|
const onPressRequest = React.useCallback(() => {
|
||||||
if (
|
const phoneNumber = parsePhoneNumber(
|
||||||
uiState.verificationPhone.length >= 9 &&
|
uiState.verificationPhone,
|
||||||
parsePhoneNumber(uiState.verificationPhone, uiState.phoneCountry)
|
uiState.phoneCountry,
|
||||||
) {
|
)
|
||||||
|
if (phoneNumber && phoneNumber.isValid()) {
|
||||||
requestVerificationCode({uiState, uiDispatch, _})
|
requestVerificationCode({uiState, uiDispatch, _})
|
||||||
} else {
|
} else {
|
||||||
uiDispatch({
|
uiDispatch({
|
||||||
|
|
Loading…
Reference in New Issue