From 65416adc62234d8c6426d13703f0c073be072b65 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 15 Jun 2019 17:06:03 +0300 Subject: Comment: do not show empty body --- vnext/src/ui/Thread.js | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/vnext/src/ui/Thread.js b/vnext/src/ui/Thread.js index cc0dbac2..50155f8c 100644 --- a/vnext/src/ui/Thread.js +++ b/vnext/src/ui/Thread.js @@ -78,15 +78,14 @@ function Comment({ msg, draft, visitor, active, setActive, onStartEditing, postC } -
- { - msg.html ?
- : -
-

= 0) }} /> -

- } -
+ { + msg.body && +
+
+

= 0) }} /> +

+
+ } { msg.photo &&
@@ -96,9 +95,9 @@ function Comment({ msg, draft, visitor, active, setActive, onStartEditing, postC
}
- { - active === msg.rid && Write a comment... - } + { + active === msg.rid && Write a comment... + }
); } -- cgit v1.2.3