API & Client - remove id in user data

This commit is contained in:
Sam
2020-02-08 14:49:37 +01:00
parent 2c3bc0f9bc
commit 9f487a4d68
16 changed files with 50 additions and 50 deletions

View File

@ -89,7 +89,7 @@ function ProfileDetail({
<img
alt="Profile"
src={
`${apiUrl}users/${user.id}/picture` +
`${apiUrl}users/${user.username}/picture` +
`?${Date.now()}`
}
className="img-fluid App-profile-img-small"

View File

@ -23,7 +23,7 @@ class UserProfile extends React.Component {
<div>
{user && (
<ProfileDetail
editable={currentUser.id === user.id}
editable={currentUser.username === user.username}
t={t}
user={user}
/>