From 032a24696305eb468377743dbfd0967e1820c8ee Mon Sep 17 00:00:00 2001 From: Fedor Katurov Date: Fri, 24 Jan 2025 17:59:05 +0700 Subject: [PATCH] fix typecheck error --- src/containers/node/NodeComments/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]) && (