diff --git a/fittrackee_client/src/components/User/Profile.jsx b/fittrackee_client/src/components/User/Profile.jsx
index dc758a4d..6974f989 100644
--- a/fittrackee_client/src/components/User/Profile.jsx
+++ b/fittrackee_client/src/components/User/Profile.jsx
@@ -46,6 +46,7 @@ function Profile({ message, onDeletePicture, onUploadPicture, user }) {
Location: {user.location}
Bio: {user.bio}
Time zone: {user.timezone}
+ First day of week: {user.weekm ? 'Monday' : 'Sunday'}
{user.picture === true && (
diff --git a/fittrackee_client/src/components/User/ProfileEdit.jsx b/fittrackee_client/src/components/User/ProfileEdit.jsx
index 02d7bdd8..615ba9d2 100644
--- a/fittrackee_client/src/components/User/ProfileEdit.jsx
+++ b/fittrackee_client/src/components/User/ProfileEdit.jsx
@@ -40,7 +40,11 @@ class ProfileEdit extends React.Component {
handleFormChange(e) {
const { formData } = this.state
- formData[e.target.name] = e.target.value
+ if (e.target.name === 'weekm') {
+ formData.weekm = e.target.value === 'Monday'
+ } else {
+ formData[e.target.name] = e.target.value
+ }
this.setState(formData)
}
@@ -195,6 +199,20 @@ class ProfileEdit extends React.Component {
/>
+
+
+