diff options
author | Vitaly Takmazov | 2019-06-25 12:48:37 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:55 +0300 |
commit | e00884120f96e5574199464aef2174d4915a93c7 (patch) | |
tree | 24fc509f7aeeef1a1046b8198e3fac25ad2a7036 /vnext/src/ui | |
parent | 6e4a692f6860dd362a94a01f6b01aa426a3f324f (diff) |
Fix comment draft condition
Diffstat (limited to 'vnext/src/ui')
-rw-r--r-- | vnext/src/ui/Thread.js | 2 |
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> )) : ( <> |