diff --git a/fittrackee_client/src/components/Dashboard/ActivityCard.jsx b/fittrackee_client/src/components/Dashboard/ActivityCard.jsx index 07986873..1569cdd7 100644 --- a/fittrackee_client/src/components/Dashboard/ActivityCard.jsx +++ b/fittrackee_client/src/components/Dashboard/ActivityCard.jsx @@ -27,9 +27,7 @@ export default function ActivityCard(props) {
Map
diff --git a/fittrackee_client/src/components/User/Profile.jsx b/fittrackee_client/src/components/User/Profile.jsx index aae4d202..2a950a03 100644 --- a/fittrackee_client/src/components/User/Profile.jsx +++ b/fittrackee_client/src/components/User/Profile.jsx @@ -8,6 +8,12 @@ import { deletePicture, uploadPicture } from '../../actions/user' import { apiUrl } from '../../utils' function Profile({ message, onDeletePicture, onUploadPicture, user }) { + const createdAt = user.created_at + ? format(new Date(user.created_at), 'dd/MM/yyyy HH:mm') + : '' + const birthDate = user.birth_date + ? format(new Date(user.birth_date), 'dd/MM/yyyy') + : '' return (
@@ -33,18 +39,10 @@ function Profile({ message, onDeletePicture, onUploadPicture, user }) {

Email: {user.email}

-

- Registration Date:{' '} - {format(new Date(user.created_at), 'dd/MM/yyyy HH:mm')} -

+

Registration Date: {createdAt}

First Name: {user.first_name}

Last Name: {user.last_name}

-

- Birth Date:{' '} - {user.birth_date - ? format(new Date(user.birth_date), 'dd/MM/yyyy') - : ''} -

+

Birth Date: {birthDate}

Location: {user.location}

Bio: {user.bio}

Time zone: {user.timezone}