From 4a9302a5f44b5854148ced204c84e88dc895def2 Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Mon, 9 Jan 2017 11:41:06 +0100 Subject: [PATCH] Changes per review --- client/my-sites/stats/stats-post-detail/index.jsx | 4 ++-- client/my-sites/stats/stats-post-likes/index.jsx | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/client/my-sites/stats/stats-post-detail/index.jsx b/client/my-sites/stats/stats-post-detail/index.jsx index e0a058cbf8aa8..e501ceb1a0948 100644 --- a/client/my-sites/stats/stats-post-detail/index.jsx +++ b/client/my-sites/stats/stats-post-detail/index.jsx @@ -68,6 +68,8 @@ const StatsPostDetail = React.createClass( { + { !! this.props.postId && } + - - { post && } ); } diff --git a/client/my-sites/stats/stats-post-likes/index.jsx b/client/my-sites/stats/stats-post-likes/index.jsx index b15d61b215ca4..c2aa2a27d6f51 100644 --- a/client/my-sites/stats/stats-post-likes/index.jsx +++ b/client/my-sites/stats/stats-post-likes/index.jsx @@ -55,13 +55,15 @@ export const PostLikes = ( { countLikes, isRequesting, likes, opened, postId, si { likes && !! likes.length &&
{ likes.map( like => - + + + ) }
} { countLikes === 0 && ! isRequesting &&
- { translate( 'This post has not likes yet!' ) } + { translate( 'There are no likes on this post yet.' ) }
}