aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhsalhab <husam_salhab@brown.edu>2021-06-08 15:30:35 -0400
committerhsalhab <husam_salhab@brown.edu>2021-06-08 17:09:49 -0400
commit65eba8b9be14a397bf49fc3b419d3e64bd0422b7 (patch)
tree9b87ab1e2f1695b2e40cce9dce496c10e2ee8903
parentea088da1304a9ba345b75aab9184f7e8d928a4ac (diff)
add empty website to submission
-rw-r--r--src/screens/profile/EditProfile.tsx15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/screens/profile/EditProfile.tsx b/src/screens/profile/EditProfile.tsx
index 26802e45..765bbf01 100644
--- a/src/screens/profile/EditProfile.tsx
+++ b/src/screens/profile/EditProfile.tsx
@@ -305,14 +305,13 @@ const EditProfile: React.FC<EditProfileProps> = ({route, navigation}) => {
type: 'image/jpg',
});
}
- if (form.website) {
- if (form.isValidWebsite) {
- request.append('website', form.website);
- } else {
- setForm({...form, attemptedSubmit: false});
- setTimeout(() => setForm({...form, attemptedSubmit: true}));
- invalidFields = true;
- }
+
+ if (form.isValidWebsite) {
+ request.append('website', form.website);
+ } else {
+ setForm({...form, attemptedSubmit: false});
+ setTimeout(() => setForm({...form, attemptedSubmit: true}));
+ invalidFields = true;
}
if (form.bio) {