diff options
author | Ivan Chen <ivan@thetaggid.com> | 2021-01-15 19:27:03 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-15 19:27:03 -0500 |
commit | 1803da7388902db45ad37fbac509604ae632bdb5 (patch) | |
tree | a786919f9bc42f7797367d55ed8f1e099134f368 /src/screens/onboarding/RegistrationOne.tsx | |
parent | 4d9efafeb4243e20e1fc936c27b9055c7ec82f8a (diff) | |
parent | cc52dabaaf529763e9c1c4683ba94ed55c5671a8 (diff) |
Merge pull request #176 from IvanIFChen/tma498-update-error-strings
[TMA-498] Update Error Strings
Diffstat (limited to 'src/screens/onboarding/RegistrationOne.tsx')
-rw-r--r-- | src/screens/onboarding/RegistrationOne.tsx | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/screens/onboarding/RegistrationOne.tsx b/src/screens/onboarding/RegistrationOne.tsx index 54c4e210..2a1d884d 100644 --- a/src/screens/onboarding/RegistrationOne.tsx +++ b/src/screens/onboarding/RegistrationOne.tsx @@ -28,6 +28,7 @@ import {SEND_OTP_ENDPOINT} from '../../constants'; import {phoneRegex} from '../../constants'; import {BackgroundGradientType, VerificationScreenType} from '../../types'; +import {ERROR_EMAIL_IN_USE, ERROR_SERVER_DOWN} from '../../constants/strings'; type RegistrationScreenOneRouteProp = RouteProp< OnboardingStackParams, @@ -96,14 +97,9 @@ const RegistrationOne: React.FC<RegistrationOneProps> = ({navigation}) => { screenType: VerificationScreenType.Phone, }); } else if (otpStatusCode === 409) { - Alert.alert( - 'This phone number is already registered with us, please use another email.', - ); + Alert.alert(ERROR_EMAIL_IN_USE); } else { - Alert.alert( - "Looks like Our phone servers might be down 😓'", - "Try again in a couple minutes. We're sorry for the inconvenience.", - ); + Alert.alert(ERROR_SERVER_DOWN); } } else { setForm({...form, attemptedSubmit: false}); |