From 2f53e0ae5ea49a6fc01a00b78072fa44ef66224e Mon Sep 17 00:00:00 2001 From: Nemwel-Boniface Date: Thu, 26 Oct 2023 22:32:26 +0300 Subject: [PATCH] Update made changes fixing error found --- src/App.js | 1 - src/components/feed/Posts.js | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index 152ad2b..d643fbe 100644 --- a/src/App.js +++ b/src/App.js @@ -8,7 +8,6 @@ import './stylesheets/user/login.css'; import './stylesheets/user/currentUserProfile.css'; import './stylesheets/feed/feed.css'; import './stylesheets/feed/feedNavBar.css'; -import './stylesheets/feed/post.css'; import './stylesheets/feed/posts.css'; import './App.css'; import './stylesheets/notfound.css'; diff --git a/src/components/feed/Posts.js b/src/components/feed/Posts.js index e7c4b6c..c2329fc 100644 --- a/src/components/feed/Posts.js +++ b/src/components/feed/Posts.js @@ -21,6 +21,10 @@ const Posts = () => { if (isError) { return
Something went wrong
; } + + if (posts.length === 0) { + return
There are no Posts created
+ } return (
{posts.map((post) => (