diff options
author | Paul Frazee <pfrazee@gmail.com> | 2024-02-06 09:29:02 -0800 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2024-02-06 09:29:02 -0800 |
commit | b9e00afdb1a5b80b7a440c19af335ffbec1f3753 (patch) | |
tree | 21244cb4da4462e89983d5d637f429b8b1d1a5ae | |
parent | 065a09408767a870c48c99549cc0198955ea1ccf (diff) | |
parent | 0604e5b84e23828ad33da2bcbed36ad65fb762bb (diff) | |
download | voidsky-b9e00afdb1a5b80b7a440c19af335ffbec1f3753.tar.zst |
Merge branch 'RonyVidaur-main' into main
-rw-r--r-- | src/view/com/auth/create/Step2.tsx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/view/com/auth/create/Step2.tsx b/src/view/com/auth/create/Step2.tsx index 6005ee3a5..2e16b13bb 100644 --- a/src/view/com/auth/create/Step2.tsx +++ b/src/view/com/auth/create/Step2.tsx @@ -42,10 +42,11 @@ 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({ |