fix(popular threads box): in each post content, one return would appear as two returns (empty lines)

This commit is contained in:
Tom (plebeius.eth)
2024-08-12 13:13:42 +02:00
parent 9064b8baae
commit cfe8686d94
@@ -18,9 +18,11 @@ interface PopularThreadProps {
}
const PopularThreadCard = ({ post, boardTitle, boardShortAddress }: PopularThreadProps) => {
const { cid, content, subplebbitAddress, title } = post || {};
const { cid, subplebbitAddress, title } = post || {};
const commentMediaInfo = getCommentMediaInfo(post);
let content = post?.content?.replace(/\n\n/g, '\n');
return (
<div className={styles.popularThread} key={cid}>
<div className={styles.title}>{boardTitle || boardShortAddress}</div>