From 4f2e07756db14136dccafe5058066faf21b640a3 Mon Sep 17 00:00:00 2001 From: Clayton Wilson Date: Fri, 6 Dec 2019 13:04:59 -0500 Subject: [PATCH] tell the user if they aren't following anybody --- twistter-frontend/src/pages/Home.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/twistter-frontend/src/pages/Home.js b/twistter-frontend/src/pages/Home.js index 4032ed0..85043e7 100644 --- a/twistter-frontend/src/pages/Home.js +++ b/twistter-frontend/src/pages/Home.js @@ -140,8 +140,7 @@ class Home extends Component { } console.log(hiddenBool); - let postMarkup = this.state.posts ? ( -// <<<<<<< admin-delete + let postMarkup = this.state.posts ? ( this.state.following === undefined || this.state.following === null ? You aren't following anybody right now : this.state.posts.map(post => !post.hidden && this.state.following && this.state.following.includes(post.userHandle) ? ( @@ -199,18 +198,6 @@ class Home extends Component {

) ) -// ======= -// this.state.posts.map(post => -// this.state.following ? ( -// this.state.following.includes(post.userHandle) ? ( -// ) : ( -//

-// ) -// ) : ( -//

-// ) -// >>>>>>> master - ) : (

Loading post...

);