diff --git a/web/core/components/issues/issue-detail/issue-activity/comments/comment-block.tsx b/web/core/components/issues/issue-detail/issue-activity/comments/comment-block.tsx index 8b9a3eff0..9a35ef1da 100644 --- a/web/core/components/issues/issue-detail/issue-activity/comments/comment-block.tsx +++ b/web/core/components/issues/issue-detail/issue-activity/comments/comment-block.tsx @@ -28,11 +28,13 @@ export const IssueCommentBlock: FC = observer((props) => {
- {comment.actor_detail.avatar_url && comment.actor_detail.avatar_url !== "" ? ( + {comment.actor_detail?.avatar_url && comment.actor_detail?.avatar_url !== "" ? ( { = observer((props) => { /> ) : ( <> - {comment.actor_detail.is_bot - ? comment.actor_detail.first_name.charAt(0) - : comment.actor_detail.display_name.charAt(0)} + {comment.actor_detail?.is_bot + ? comment.actor_detail?.first_name.charAt(0) + : comment.actor_detail?.display_name.charAt(0)} )}
@@ -53,9 +55,9 @@ export const IssueCommentBlock: FC = observer((props) => {
- {comment.actor_detail.is_bot - ? comment.actor_detail.first_name + " Bot" - : comment.actor_detail.display_name} + {comment.actor_detail?.is_bot + ? comment.actor_detail?.first_name + " Bot" + : comment.actor_detail?.display_name}
commented {calculateTimeAgo(comment.created_at)}