From 7cd3bf885948e19c6f794697fde80742a1e2aaaa Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Thu, 13 Apr 2023 09:52:39 -0400 Subject: [PATCH] Add note on comment when edited --- app/scenes/Document/components/CommentThreadItem.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/scenes/Document/components/CommentThreadItem.tsx b/app/scenes/Document/components/CommentThreadItem.tsx index 20c76eae5..ec5ecb6aa 100644 --- a/app/scenes/Document/components/CommentThreadItem.tsx +++ b/app/scenes/Document/components/CommentThreadItem.tsx @@ -89,7 +89,8 @@ function CommentThreadItem({ const [data, setData] = React.useState(toJS(comment.data)); const showAuthor = firstOfAuthor; const showTime = useShowTime(comment.createdAt, previousCommentCreatedAt); - const showEdited = comment.updatedAt !== comment.createdAt; + const showEdited = + comment.updatedAt && comment.updatedAt !== comment.createdAt; const [isEditing, setEditing, setReadOnly] = useBoolean(); const formRef = React.useRef(null);