Fix commented on Someone message (#1665)

* Fix commented on Someone message

* Feedback review
This commit is contained in:
Elias Nahum 2018-05-11 18:14:05 -03:00 committed by Harrison Healey
parent 77140f8730
commit 8bbc8ddb78

View file

@ -23,7 +23,7 @@ function makeMapStateToProps() {
const militaryTime = getBool(state, Preferences.CATEGORY_DISPLAY_SETTINGS, 'use_military_time');
return {
commentedOnDisplayName: displayUsername(commentedOnUser, teammateNameDisplay),
commentedOnDisplayName: ownProps.commentedOnUserId ? displayUsername(commentedOnUser, teammateNameDisplay) : '',
commentCount: getCommentCountForPost(state, {post}),
createAt: post.create_at,
displayName: displayUsername(user, teammateNameDisplay),