From 7dfbe5a5390453f82954b897ec30f23ccf80227f Mon Sep 17 00:00:00 2001 From: David Granado Date: Fri, 21 Jan 2022 20:57:49 -0600 Subject: [PATCH] Fix null property access bug --- ui/component/commentsReplies/view.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/component/commentsReplies/view.jsx b/ui/component/commentsReplies/view.jsx index 1906a1a18..d02891199 100644 --- a/ui/component/commentsReplies/view.jsx +++ b/ui/component/commentsReplies/view.jsx @@ -46,7 +46,7 @@ function CommentsReplies(props: Props) { const [commentsToDisplay, setCommentsToDisplay] = React.useState(fetchedReplies); const isResolvingReplies = fetchedReplies && resolvedReplies.length !== fetchedReplies.length; const alreadyResolved = !isResolvingReplies && resolvedReplies.length !== 0; - const canDisplayComments = commentsToDisplay && commentsToDisplay.length === fetchedReplies.length; + const canDisplayComments = commentsToDisplay && commentsToDisplay.length === fetchedReplies?.length; // Batch resolve comment channel urls React.useEffect(() => {