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

only add new-comment hash to nodes with comments

This commit is contained in:
Fedor Katurov 2025-01-24 18:22:13 +07:00
parent 032a246963
commit 71306d4c14

View file

@ -20,7 +20,7 @@ interface NotificationCommentProps {
const NotificationComment: FC<NotificationCommentProps> = ({ item, isNew }) => (
<Anchor
href={getCommentAnchor(item.url, item.itemId)}
href={isNew ? getCommentAnchor(item.url, item.itemId) : item.url}
className={styles.link}
>
<div className={classNames(styles.message, { [styles.new]: isNew })}>