summaryrefslogtreecommitdiffstats
path: root/webapp/components/common/comment_icon.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/common/comment_icon.jsx')
-rw-r--r--webapp/components/common/comment_icon.jsx8
1 files changed, 5 insertions, 3 deletions
diff --git a/webapp/components/common/comment_icon.jsx b/webapp/components/common/comment_icon.jsx
index 63218971f..4505d51bc 100644
--- a/webapp/components/common/comment_icon.jsx
+++ b/webapp/components/common/comment_icon.jsx
@@ -21,7 +21,7 @@ export default function CommentIcon(props) {
iconStyle = iconStyle + ' ' + props.searchStyle;
}
- let commentIconId = props.idPrefix;
+ let commentIconId = props.channelId + props.idPrefix;
if (props.idCount > -1) {
commentIconId += props.idCount;
}
@@ -47,11 +47,13 @@ CommentIcon.propTypes = {
idCount: PropTypes.number,
handleCommentClick: PropTypes.func.isRequired,
searchStyle: PropTypes.string,
- commentCount: PropTypes.number
+ commentCount: PropTypes.number,
+ channelId: PropTypes.string
};
CommentIcon.defaultProps = {
idCount: -1,
searchStyle: '',
- commentCount: 0
+ commentCount: 0,
+ channelId: ''
}; \ No newline at end of file