removed comment from last recursion layer

This commit is contained in:
2024-06-13 08:15:46 +02:00
parent 3e6ddab88d
commit caf853e8a9

View File

@@ -51,10 +51,10 @@ const Post = ({ post, recursionDepth, selectPost, reload }) => {
<p>{post.content}</p> <p>{post.content}</p>
</div> </div>
</div> </div>
<div className="nrOfComments"> {recursionDepth !== 0 && <div className="nrOfComments">
<FontAwesomeIcon className="icon" icon={faComments}/> <FontAwesomeIcon className="icon" icon={faComments}/>
<span className="">{getComments(post)}</span> <span className="">{getComments(post)}</span>
</div> </div>}
<div className="post-right"> <div className="post-right">
<div className="post-date"> <div className="post-date">
{post.date.slice(8, 10) + "." + post.date.slice(5, 7) + "." + post.date.slice(0, 4)} {post.date.slice(8, 10) + "." + post.date.slice(5, 7) + "." + post.date.slice(0, 4)}