diff --git a/src/containers/node/NodeComments/index.tsx b/src/containers/node/NodeComments/index.tsx index a1d93732..71c3a547 100644 --- a/src/containers/node/NodeComments/index.tsx +++ b/src/containers/node/NodeComments/index.tsx @@ -22,7 +22,7 @@ interface Props { order: 'ASC' | 'DESC'; } -const isFirstGroupWithNewCommentt = ( +const isFirstGroupWithNewComment = ( group: ICommentGroup, prevGroup: ICommentGroup | undefined, ) => group.hasNew && (!prevGroup || !prevGroup.hasNew); @@ -88,7 +88,7 @@ const NodeComments: FC = observer(({ order }) => { {groupped.map((group, index) => ( <> - {isFirstGroupWithNewCommentt(group, groupped.at(index - 1)) && ( + {isFirstGroupWithNewComment(group, groupped[index - 1]) && (