aboutsummaryrefslogtreecommitdiff
path: root/src/screens/profile/EditProfile.tsx
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-06-11 17:01:43 -0400
committerIvan Chen <ivan@tagg.id>2021-06-11 17:01:43 -0400
commitbcfbaf00f60b65ab5f8c38ff8766644a2496bed1 (patch)
treeaf2fd669cf1f4cd427e832a39ac9deb2cd7a1430 /src/screens/profile/EditProfile.tsx
parent47b087816844473be858adf766b2f538ecf6d0aa (diff)
parent17d3f1255bd7692772b675b09685a92b305e8d9b (diff)
Merge branch 'master' into tma904-moment-comment-revamp
# Conflicts: # src/components/moments/MomentPost.tsx # src/components/moments/MomentPostContent.tsx # src/services/MomentService.ts
Diffstat (limited to 'src/screens/profile/EditProfile.tsx')
-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..20a62b19 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) {