From 63d7cd49d27b091d684929c98606e2b33298fa69 Mon Sep 17 00:00:00 2001 From: Ategon <benjamin@barbeau.net> Date: Wed, 22 Jan 2025 22:12:25 -0500 Subject: [PATCH] Fix text when no stickied posts --- src/components/posts/index.tsx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/components/posts/index.tsx b/src/components/posts/index.tsx index 043b53c..e740bf8 100644 --- a/src/components/posts/index.tsx +++ b/src/components/posts/index.tsx @@ -319,15 +319,11 @@ export default function Posts() { </div> ) : ( <div className="flex flex-col gap-3 p-4"> - {stickyPosts && stickyPosts.length > 0 ? ( + {stickyPosts && + stickyPosts.length > 0 && stickyPosts.map((post) => ( <StickyPostCard key={post.id} post={post} /> - )) - ) : ( - <p className="text-center text-[#333] dark:text-white transition-color duration-250 ease-linear"> - No posts match your filters - </p> - )} + ))} </div> )}