Skip to content

Commit

Permalink
fixed comment photo
Browse files Browse the repository at this point in the history
  • Loading branch information
Taís Foltran Orsini committed Jul 30, 2021
1 parent ad58a10 commit df50687
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/routeComponents/auth/PostDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function PostDetails(props) {
profilePicture: postResponse.data.userId.image,
commentUserName: postResponse.data.comments[0].userId.name,
commentUserLastName: postResponse.data.comments[0].userId.lastName,
commentUserPhoto: postResponse.data.comments[0].userId.image,
commentUserPhoto: postResponse.data.comments[1].userId.image,
});
} else {
setState({
Expand Down Expand Up @@ -165,8 +165,6 @@ function PostDetails(props) {
return (
<>
<div>


<img
src={state.profilePicture}
className=" mb-2 imagemProfile"
Expand Down

0 comments on commit df50687

Please sign in to comment.