From af77f7490261dba8fa648c4d1865f7b03d5412ed Mon Sep 17 00:00:00 2001 From: Anurag Shivarathri Date: Thu, 15 Sep 2022 14:13:46 +0530 Subject: [PATCH] Fix (#6644) --- app/components/post_list/post/post.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/post_list/post/post.tsx b/app/components/post_list/post/post.tsx index 0035bee1cb..c2938cf943 100644 --- a/app/components/post_list/post/post.tsx +++ b/app/components/post_list/post/post.tsx @@ -222,7 +222,7 @@ const Post = ({ let header: ReactNode; let postAvatar: ReactNode; let consecutiveStyle: StyleProp; - const isProrityPost = isPostPriorityEnabled && post.props.priority; + const isProrityPost = Boolean(isPostPriorityEnabled && post.props?.priority); const sameSequence = hasReplies ? (hasReplies && post.rootId) : !post.rootId; if (!isProrityPost && hasSameRoot && isConsecutivePost && sameSequence) { consecutiveStyle = styles.consective;