Fix merge errors, but posts are not displaying on home.js

This commit is contained in:
Clayton Wilson 2019-12-06 12:07:36 -05:00
parent a459e6581e
commit f30a9ae27c

View File

@ -142,9 +142,7 @@ class Home extends Component {
console.log(hiddenBool);
let postMarkup = this.state.posts ? (
// <<<<<<< admin-delete
this.state.posts.map(post => post.hidden ? null :
this.state.following ?
this.state.following.includes(post.userHandle) ? (
this.state.posts.map(post => !post.hidden && this.state.following && this.state.following.includes(post.userHandle) ? (
<Card className={classes.card} key={post.postId}>
<CardContent>
<Typography>
@ -200,8 +198,6 @@ class Home extends Component {
) : (
<p></p>
)
) : (
<p></p>
)
// =======
// this.state.posts.map(post =>
@ -214,7 +210,7 @@ class Home extends Component {
// <p></p>
// )
// >>>>>>> master
)
) : (
<p>Loading post...</p>
);