diff --git a/src/containers/thread/PostThreadContainer.tsx b/src/containers/thread/PostThreadContainer.tsx index 6cee93e7..dc808412 100644 --- a/src/containers/thread/PostThreadContainer.tsx +++ b/src/containers/thread/PostThreadContainer.tsx @@ -37,7 +37,6 @@ export default function PostThreadContainer(props: Props) { const agent = useAgent(); const router = useRouter(); const { data: session } = useSession(); - const { data: profile } = useProfile(session?.user.bskySession.handle); const { @@ -72,9 +71,11 @@ export default function PostThreadContainer(props: Props) { setFilteredReplies( replyChains .map((replyArr) => - replyArr.some((reply) => replyIncludes(reply.post.record, textSearch)) + replyArr.some((reply) => + replyIncludes(reply.post.record, textSearch), + ), ) - .filter(Boolean).length + .filter(Boolean).length, ); }, [replyChains, textSearch]); @@ -170,7 +171,7 @@ export default function PostThreadContainer(props: Props) { <> {showReplies && replyArr.some((reply) => - replyIncludes(reply.post.record, textSearch) + replyIncludes(reply.post.record, textSearch), ) && (
@@ -22,11 +21,9 @@ export default function ThreadActionsContainer(props: Props) { }`} > - {postHasReplies && ( -
- -
- )} +
+ +
);