From d8c20da881d4abc9ede9b1e623cca4a5774a50cf Mon Sep 17 00:00:00 2001 From: igoradamenko Date: Sun, 6 Jan 2019 11:41:11 +0200 Subject: [PATCH] show comment's post title in last comments widget only if it exists --- web/app/components/comment/comment.jsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/web/app/components/comment/comment.jsx b/web/app/components/comment/comment.jsx index a7482898..1a64f347 100644 --- a/web/app/components/comment/comment.jsx +++ b/web/app/components/comment/comment.jsx @@ -438,11 +438,13 @@ export default class Comment extends Component { return (
-
- - {o.title} - -
+ {!!o.title && ( +
+ + {o.title} + +
+ )}
{o.user.name}