Fix empty sticky post buffer

This commit is contained in:
Ategon 2025-01-22 22:16:38 -05:00
parent 63d7cd49d2
commit 6791e36401

View file

@ -318,13 +318,14 @@ export default function Posts() {
/> />
</div> </div>
) : ( ) : (
stickyPosts &&
stickyPosts.length > 0 && (
<div className="flex flex-col gap-3 p-4"> <div className="flex flex-col gap-3 p-4">
{stickyPosts && {stickyPosts.map((post) => (
stickyPosts.length > 0 &&
stickyPosts.map((post) => (
<StickyPostCard key={post.id} post={post} /> <StickyPostCard key={post.id} post={post} />
))} ))}
</div> </div>
)
)} )}
<div className="flex justify-between p-4 pb-0"> <div className="flex justify-between p-4 pb-0">