aboutsummaryrefslogtreecommitdiff
path: root/src/screens/onboarding/ProfileOnboarding.tsx
diff options
context:
space:
mode:
authorShravya Ramesh <37447613+shravyaramesh@users.noreply.github.com>2020-10-27 09:38:18 -0700
committerGitHub <noreply@github.com>2020-10-27 12:38:18 -0400
commite7a712038a17a759d09bf80c6945c89e060f7310 (patch)
tree258ac10aa51c1300f329d370c308ed76d80250db /src/screens/onboarding/ProfileOnboarding.tsx
parent67a3aa389a8b761c9fdf4129265d488a77db1ea9 (diff)
[TMA-313] Removed Checkpoint while Onboarding (#76)
* Redirecting to ProfilOnboarding page directly without going through the checkpoint page after registration * Made picture uploads mandatory
Diffstat (limited to 'src/screens/onboarding/ProfileOnboarding.tsx')
-rw-r--r--src/screens/onboarding/ProfileOnboarding.tsx8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/screens/onboarding/ProfileOnboarding.tsx b/src/screens/onboarding/ProfileOnboarding.tsx
index 7e489d6d..e7fcec90 100644
--- a/src/screens/onboarding/ProfileOnboarding.tsx
+++ b/src/screens/onboarding/ProfileOnboarding.tsx
@@ -241,6 +241,14 @@ const ProfileOnboarding: React.FC<ProfileOnboardingProps> = ({
};
const handleSubmit = async () => {
+ if (!form.largePic) {
+ Alert.alert('Please upload a large profile picture!');
+ return;
+ }
+ if (!form.smallPic) {
+ Alert.alert('Please upload a small profile picture!');
+ return;
+ }
if (!form.attemptedSubmit) {
setForm({
...form,