aboutsummaryrefslogtreecommitdiff
path: root/src/screens/onboarding/Registration.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/screens/onboarding/Registration.tsx')
-rw-r--r--src/screens/onboarding/Registration.tsx6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/screens/onboarding/Registration.tsx b/src/screens/onboarding/Registration.tsx
index 8d564cd0..6cad92a5 100644
--- a/src/screens/onboarding/Registration.tsx
+++ b/src/screens/onboarding/Registration.tsx
@@ -227,9 +227,11 @@ const Registration: React.FC<RegistrationProps> = ({navigation}) => {
);
let otpStatusCode = sendOtpResponse.status;
if (otpStatusCode === 200) {
+ const userId: string = data.UserID;
navigation.navigate('Verification', {
username: form.username,
email: form.email,
+ userId: userId,
});
}
} else if (statusCode === 409) {
@@ -252,8 +254,8 @@ const Registration: React.FC<RegistrationProps> = ({navigation}) => {
}
} catch (error) {
Alert.alert(
- 'Looks like our servers are down. 😓',
- "Try again in a couple minutes. We're sorry for the inconvenience.",
+ 'Registration failed 😓',
+ 'Please double-check your network connection and retry.',
);
return {
name: 'Registration error',