From 17ac6c58b24758ae054c138ede839c8eab65ee2b Mon Sep 17 00:00:00 2001 From: Ian Philips Date: Thu, 23 Jun 2022 16:09:26 -0500 Subject: [PATCH] Don't prompt to comment on FR bets, arrow spacing --- .../feed/feed-answer-comment-group.tsx | 17 +---------------- web/components/feed/feed-comments.tsx | 3 +-- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/web/components/feed/feed-answer-comment-group.tsx b/web/components/feed/feed-answer-comment-group.tsx index 30d5f55b..5c3be539 100644 --- a/web/components/feed/feed-answer-comment-group.tsx +++ b/web/components/feed/feed-answer-comment-group.tsx @@ -88,26 +88,11 @@ export function FeedAnswerCommentGroup(props: { } ) - useEffect(() => { - if ( - mostRecentCommentableBet && - usersMostRecentBetTimeAtLoad !== undefined && - mostRecentCommentableBet.createdTime > usersMostRecentBetTimeAtLoad && - !showReply - ) - scrollAndOpenReplyInput(undefined, answer) - }, [ - answer, - usersMostRecentBetTimeAtLoad, - mostRecentCommentableBet, - scrollAndOpenReplyInput, - showReply, - ]) - useEffect(() => { // Only show one comment input for a bet at a time if ( betsByCurrentUser.length > 1 && + inputRef?.textContent?.length === 0 && betsByCurrentUser.sort((a, b) => b.createdTime - a.createdTime)[0] ?.outcome !== answer.number.toString() ) diff --git a/web/components/feed/feed-comments.tsx b/web/components/feed/feed-comments.tsx index adcddd4e..ed02128e 100644 --- a/web/components/feed/feed-comments.tsx +++ b/web/components/feed/feed-comments.tsx @@ -530,8 +530,7 @@ export function CommentInputTextArea(props: { {user && !isSubmitting && (