From af4b01c2aee7a91a0b250c5902b78d99214fc486 Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Thu, 17 Aug 2017 23:23:18 +0700 Subject: [PATCH] Correctly handly activeReplyBox optimization --- client/coral-embed-stream/src/components/Comment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/coral-embed-stream/src/components/Comment.js b/client/coral-embed-stream/src/components/Comment.js index d34de96ac..dcc52d85a 100644 --- a/client/coral-embed-stream/src/components/Comment.js +++ b/client/coral-embed-stream/src/components/Comment.js @@ -130,7 +130,7 @@ export default class Comment extends React.Component { const changes = getShallowChanges(this.props, next); if (changes.length === 1 && changes[0] === 'activeReplyBox') { if ( - !containsCommentId(next, this.props.activeReplyBox) && + !containsCommentId(this.props, this.props.activeReplyBox) && !containsCommentId(next, next.activeReplyBox) ) { return false;