aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/ui/Thread.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-06-25 12:48:37 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:55 +0300
commite00884120f96e5574199464aef2174d4915a93c7 (patch)
tree24fc509f7aeeef1a1046b8198e3fac25ad2a7036 /vnext/src/ui/Thread.js
parent6e4a692f6860dd362a94a01f6b01aa426a3f324f (diff)
Fix comment draft condition
Diffstat (limited to 'vnext/src/ui/Thread.js')
-rw-r--r--vnext/src/ui/Thread.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/vnext/src/ui/Thread.js b/vnext/src/ui/Thread.js
index b5cc1880..734e5698 100644
--- a/vnext/src/ui/Thread.js
+++ b/vnext/src/ui/Thread.js
@@ -196,7 +196,7 @@ export default function Thread(props) {
{
!loading ? replies.map((msg) => (
<li id={msg.rid} key={msg.rid}>
- <Comment msg={msg} draft={msg.rid === editing.replyto && editing.body} visitor={props.visitor} active={active} setActive={setActive} onStartEditing={startEditing} postComment={postComment} />
+ <Comment msg={msg} draft={msg.rid === editing.replyto ? editing.body : ''} visitor={props.visitor} active={active} setActive={setActive} onStartEditing={startEditing} postComment={postComment} />
</li>
)) : (
<>