Fix null property access bug
This commit is contained in:
parent
a8418025db
commit
7dfbe5a539
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ function CommentsReplies(props: Props) {
|
||||||
const [commentsToDisplay, setCommentsToDisplay] = React.useState(fetchedReplies);
|
const [commentsToDisplay, setCommentsToDisplay] = React.useState(fetchedReplies);
|
||||||
const isResolvingReplies = fetchedReplies && resolvedReplies.length !== fetchedReplies.length;
|
const isResolvingReplies = fetchedReplies && resolvedReplies.length !== fetchedReplies.length;
|
||||||
const alreadyResolved = !isResolvingReplies && resolvedReplies.length !== 0;
|
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
|
// Batch resolve comment channel urls
|
||||||
React.useEffect(() => {
|
React.useEffect(() => {
|
||||||
|
|
Loading…
Reference in a new issue