1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00

only use new-comment tag if there's really new comment

This commit is contained in:
Fedor Katurov 2025-01-26 19:01:42 +07:00
parent fd8907dd3a
commit 42f8f96e34
3 changed files with 7 additions and 2 deletions

View file

@ -22,7 +22,11 @@ const NodeHorizontalCard: FC<Props> = ({ node, hasNew, onClick }) => (
<Anchor
key={node.id}
className={styles.item}
href={getNewCommentAnchor(URLS.NODE_URL(node.id))}
href={
hasNew
? getNewCommentAnchor(URLS.NODE_URL(node.id))
: URLS.NODE_URL(node.id)
}
onClick={onClick}
>
<div