changed variable name to postId

This commit is contained in:
shobhitm23
2019-10-31 15:29:54 -04:00
parent a4b7f7a107
commit 51fc965a90
2 changed files with 2 additions and 2 deletions

View File

@@ -95,7 +95,7 @@ class user extends Component {
let posts = classes.data
let recentPostsMarkup = posts ? (
this.state.posts.map(post => <Posts key={post.id} post={post}/>)
this.state.posts.map(post => <Posts key={post.postId} post={post}/>)
) : ( <p> Loading... </p> );
return (