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 {
captchaResponse, setCaptchaResponse,
setCaptchaResponse,
setChallengesArray,
defaultSubplebbits,
setIsCaptchaOpen,
+3 -5
View File
@@ -711,10 +711,8 @@ const Thread = () => {
</div>
{comment.replyCount === undefined ? <PostLoader /> : null}
{comment.replyCount > 0 &&
Object.keys(comment?.replies?.pages?.topAll.comments).map(() => {
const renderedComments = renderThreadComments(comment?.replies?.pages?.topAll.comments);
return renderedComments.map(reply => {
return (
renderedComments.map((reply) => {
return (
<div key={`mob-rc-${reply.cid}-${Math.random()}`} className="reply-container">
<div key={`mob-pr-${reply.cid}`} className="post-reply">
<div key={`mob-pi-${reply.cid}`} className="post-info-mobile">
@@ -759,7 +757,7 @@ const Thread = () => {
</div>
)
})
})}
}
</div>
<BottomBar selectedStyle={selectedStyle}>
<div id="bottombar-desktop">