From 8bbc8ddb783a4503b17bd3567df6949d5e0ecdd5 Mon Sep 17 00:00:00 2001 From: Elias Nahum Date: Fri, 11 May 2018 18:14:05 -0300 Subject: [PATCH] Fix commented on Someone message (#1665) * Fix commented on Someone message * Feedback review --- app/components/post_header/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/post_header/index.js b/app/components/post_header/index.js index 43db52d8a..1cffd865e 100644 --- a/app/components/post_header/index.js +++ b/app/components/post_header/index.js @@ -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),