We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6a8408 commit 60c483eCopy full SHA for 60c483e
src/components/Blogs/Blogs.tsx
@@ -64,16 +64,19 @@ const PostText = styled.div`
64
65
const Blogs: React.FC = () => {
66
const posts = usePosts()
67
- const hasPosts = posts?.posts?.length > 0
+
68
+ if (posts.posts.find(function(post) {
69
+ return post.visibility == 'Public'
70
+ }) === undefined) {
71
- if (!hasPosts) {
72
return (
73
<BlogPage>
74
<div>Stay tuned for upcoming blogs!</div>
75
</BlogPage>
76
)
77
}
78
79
80
posts.posts.sort((a:Posts,b:Posts) => {
81
return new Date(b.date).valueOf() - new Date(a.date).valueOf();
82
});
0 commit comments