1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +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

@ -68,6 +68,7 @@ const NodeComments: FC<Props> = observer(({ order }) => {
return null;
}
/** Scrolls down to new comments or specific one from anchor */
useEffect(() => {
const anchor = location.hash?.replace('#', '');