From 25221c91c8caa09a122808b5e5bb34efe72778b5 Mon Sep 17 00:00:00 2001 From: vladislavkeblysh Date: Thu, 26 Oct 2023 15:07:23 +0300 Subject: [PATCH] feat: fixed conditions --- .../post-comments/comments/comment/CommentHeader.jsx | 2 +- src/discussions/posts/post/PostHeader.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/discussions/post-comments/comments/comment/CommentHeader.jsx b/src/discussions/post-comments/comments/comment/CommentHeader.jsx index 2c63da1e5..48f1d026d 100644 --- a/src/discussions/post-comments/comments/comment/CommentHeader.jsx +++ b/src/discussions/post-comments/comments/comment/CommentHeader.jsx @@ -16,7 +16,7 @@ const CommentHeader = ({ const colorClass = AvatarOutlineAndLabelColors[comment.authorLabel]; const hasAnyAlert = useAlertBannerVisible(comment); - const profileImage = comment.users && Object.values(comment.users)[0].profile.image; + const profileImage = Boolean(comment.users) && Object.values(comment.users)[0].profile.image; return (