diff options
author | Ivan Chen <ivan@tagg.id> | 2021-01-21 15:04:35 -0500 |
---|---|---|
committer | Ivan Chen <ivan@tagg.id> | 2021-01-21 15:04:35 -0500 |
commit | 8ed0b76529d4f176c89ad12330c909fef22697c8 (patch) | |
tree | f2c0fdeb0a3acc4e664e51a932d0c5b43cf7290a /src | |
parent | 704c6c6bada682ec7e9008a775f4719fd1d0bd00 (diff) |
trim bio
Diffstat (limited to 'src')
-rw-r--r-- | src/screens/profile/EditProfile.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/screens/profile/EditProfile.tsx b/src/screens/profile/EditProfile.tsx index 3b3fa36e..c5ae8c6f 100644 --- a/src/screens/profile/EditProfile.tsx +++ b/src/screens/profile/EditProfile.tsx @@ -297,7 +297,7 @@ const EditProfile: React.FC<EditProfileProps> = ({route, navigation}) => { if (form.bio) { if (form.isValidBio) { - request.append('biography', form.bio); + request.append('biography', form.bio.trim()); } else { setForm({...form, attemptedSubmit: false}); setTimeout(() => setForm({...form, attemptedSubmit: true})); |