jam411 3 лет назад
Родитель
Сommit
6601abb0a3
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/app/src/components/PageComment/Comment.tsx

+ 1 - 1
packages/app/src/components/PageComment/Comment.tsx

@@ -77,7 +77,7 @@ export const Comment = (props: CommentProps): JSX.Element => {
     if (comment.revision === currentRevisionId) {
       className += ' page-comment-current';
     }
-    else if (Date.parse(comment.createdAt.toString()) > Date.parse(currentRevisionCreatedAt.toString())) {
+    else if (comment.createdAt.getTime() > currentRevisionCreatedAt.getTime()) {
       className += ' page-comment-newer';
     }
     else {