diff options
Diffstat (limited to 'src/screens/profile')
| -rw-r--r-- | src/screens/profile/EditProfile.tsx | 2 | ||||
| -rw-r--r-- | src/screens/profile/MomentCommentsScreen.tsx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/screens/profile/EditProfile.tsx b/src/screens/profile/EditProfile.tsx index 36de2bfa..7d3ca581 100644 --- a/src/screens/profile/EditProfile.tsx +++ b/src/screens/profile/EditProfile.tsx @@ -313,7 +313,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})); diff --git a/src/screens/profile/MomentCommentsScreen.tsx b/src/screens/profile/MomentCommentsScreen.tsx index 6434477e..2bceafc9 100644 --- a/src/screens/profile/MomentCommentsScreen.tsx +++ b/src/screens/profile/MomentCommentsScreen.tsx @@ -15,7 +15,7 @@ import {CommentTile, TabsGradient} from '../../components'; import {AddComment} from '../../components/'; import {ProfileStackParams} from '../../routes/main'; import {CommentType} from '../../types'; -import {SCREEN_HEIGHT, SCREEN_WIDTH} from '../../utils/screenDimensions'; +import {SCREEN_HEIGHT, SCREEN_WIDTH} from '../../utils'; /** * Comments Screen for an image uploaded |
