From e9331e90d3e6efaa55929c12accbe2dca280c530 Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Wed, 19 Apr 2017 01:07:49 +0700 Subject: [PATCH] Add missing check --- client/coral-plugin-commentbox/CommentBox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/coral-plugin-commentbox/CommentBox.js b/client/coral-plugin-commentbox/CommentBox.js index 59af5fac1..0af98d913 100644 --- a/client/coral-plugin-commentbox/CommentBox.js +++ b/client/coral-plugin-commentbox/CommentBox.js @@ -67,7 +67,7 @@ class CommentBox extends Component { }) .catch((err) => { console.error(err); - setCommentCountCache(commentCountCache); + !isReply && setCommentCountCache(commentCountCache); }); this.setState({body: ''}); }