From e5fb3bc8a22c3e05eb287ce59da81f8f7de5f66f Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Wed, 15 Nov 2023 12:37:27 +0100 Subject: [PATCH] refactor(post): inprecise variable --- src/components/post/post.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/post/post.tsx b/src/components/post/post.tsx index f5d8840f..51cc5504 100644 --- a/src/components/post/post.tsx +++ b/src/components/post/post.tsx @@ -43,7 +43,7 @@ const Post = ({ post, index }: PostProps) => { const postAuthor = isPending ? account?.author?.shortAddress : author?.shortAddress; const postScore = upvoteCount === 0 && downvoteCount === 0 ? '•' : upvoteCount - downvoteCount || '•'; - const postTitleOrContent = (title?.length > 300 ? title?.slice(0, 300) + '...' : title) || (content?.length > 300 ? content?.slice(0, 300) + '...' : content); + const postTitle = (title?.length > 300 ? title?.slice(0, 300) + '...' : title) || (content?.length > 300 ? content?.slice(0, 300) + '...' : content); const pendingReplyCount = usePendingReplyCount({ parentCommentCid: cid }); const totalReplyCount = replyCount + pendingReplyCount; @@ -78,11 +78,11 @@ const Post = ({ post, index }: PostProps) => {

{isInPostView && link ? ( - {postTitleOrContent} + {postTitle} ) : ( - {postTitleOrContent} + {postTitle} )} {flair && (