Skip to content

Commit

Permalink
Update made changes fixing error found
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemwel-Boniface committed Oct 26, 2023
1 parent 7fffb45 commit 2f53e0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
4 changes: 4 additions & 0 deletions src/components/feed/Posts.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ const Posts = () => {
if (isError) {
return <div>Something went wrong</div>;
}

if (posts.length === 0) {
return <div>There are no Posts created</div>
}
return (
<article className="Posts">
{posts.map((post) => (
Expand Down

0 comments on commit 2f53e0a

Please sign in to comment.