From faaf5021141f3e4e8ab71de46fd3a1b43ff3ac8e Mon Sep 17 00:00:00 2001 From: Marshall Polaris Date: Tue, 20 Sep 2022 14:11:26 -0700 Subject: [PATCH] Remove old check in free answer comment rendering (#906) --- .../feed/feed-answer-comment-group.tsx | 26 +++++++------------ 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/web/components/feed/feed-answer-comment-group.tsx b/web/components/feed/feed-answer-comment-group.tsx index 47cb9743..51f1bbc2 100644 --- a/web/components/feed/feed-answer-comment-group.tsx +++ b/web/components/feed/feed-answer-comment-group.tsx @@ -48,7 +48,6 @@ export function FeedAnswerCommentGroup(props: { const answerElementId = `answer-${answer.id}` const commentsByCurrentUser = (user && commentsByUserId[user.id]) ?? [] - const isFreeResponseContractPage = !!commentsByCurrentUser const scrollAndOpenReplyInput = useEvent( (comment?: ContractComment, answer?: Answer) => { @@ -95,20 +94,7 @@ export function FeedAnswerCommentGroup(props: { - - {isFreeResponseContractPage && ( -
- -
- )} - - {isFreeResponseContractPage && ( -
+
- )} + +
+ +