fix mobile thread replies

This commit is contained in:
plebbitor
2023-04-15 22:23:18 +02:00
parent d982d31961
commit bccfde6572
2 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ import useSuccess from '../../hooks/useSuccess';
const Board = () => { const Board = () => {
const { const {
captchaResponse, setCaptchaResponse, setCaptchaResponse,
setChallengesArray, setChallengesArray,
defaultSubplebbits, defaultSubplebbits,
setIsCaptchaOpen, setIsCaptchaOpen,
+2 -4
View File
@@ -711,9 +711,7 @@ const Thread = () => {
</div> </div>
{comment.replyCount === undefined ? <PostLoader /> : null} {comment.replyCount === undefined ? <PostLoader /> : null}
{comment.replyCount > 0 && {comment.replyCount > 0 &&
Object.keys(comment?.replies?.pages?.topAll.comments).map(() => { renderedComments.map((reply) => {
const renderedComments = renderThreadComments(comment?.replies?.pages?.topAll.comments);
return renderedComments.map(reply => {
return ( return (
<div key={`mob-rc-${reply.cid}-${Math.random()}`} className="reply-container"> <div key={`mob-rc-${reply.cid}-${Math.random()}`} className="reply-container">
<div key={`mob-pr-${reply.cid}`} className="post-reply"> <div key={`mob-pr-${reply.cid}`} className="post-reply">
@@ -759,7 +757,7 @@ const Thread = () => {
</div> </div>
) )
}) })
})} }
</div> </div>
<BottomBar selectedStyle={selectedStyle}> <BottomBar selectedStyle={selectedStyle}>
<div id="bottombar-desktop"> <div id="bottombar-desktop">