diff options
author | Paul Frazee <pfrazee@gmail.com> | 2024-02-06 09:13:19 -0800 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2024-02-06 09:13:19 -0800 |
commit | 57559ab6cac92ef10ced7f183f961b49d5ce1a62 (patch) | |
tree | 0378d783ca99ee97c5e6e2fcb2861cb5ca6c54ed /src | |
parent | 065a09408767a870c48c99549cc0198955ea1ccf (diff) | |
parent | 1412f9d95cfa5de31a80f279095618f84982705e (diff) | |
download | voidsky-57559ab6cac92ef10ced7f183f961b49d5ce1a62.tar.zst |
Merge branch 'main' of https://github.com/RonyVidaur/social-app into RonyVidaur-main
Diffstat (limited to 'src')
-rw-r--r-- | src/view/com/auth/create/Step2.tsx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/view/com/auth/create/Step2.tsx b/src/view/com/auth/create/Step2.tsx index 6005ee3a5..c1648eccc 100644 --- a/src/view/com/auth/create/Step2.tsx +++ b/src/view/com/auth/create/Step2.tsx @@ -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({ |