aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-01-21 15:04:35 -0500
committerIvan Chen <ivan@tagg.id>2021-01-21 15:04:35 -0500
commit8ed0b76529d4f176c89ad12330c909fef22697c8 (patch)
treef2c0fdeb0a3acc4e664e51a932d0c5b43cf7290a
parent704c6c6bada682ec7e9008a775f4719fd1d0bd00 (diff)
trim bio
-rw-r--r--src/screens/profile/EditProfile.tsx2
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}));