diff options
author | Vitaly Takmazov | 2019-04-17 17:18:50 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:54 +0300 |
commit | 423da5baf0aeac7acffc83328a7c3731c2997b98 (patch) | |
tree | cee866278f6da90068a8c5ee0a3768a932e23436 /vnext/src/components/Thread.js | |
parent | f88307cc569f4ce179a64726885ea75401dfbcec (diff) |
Fix ESLint warnings
react hooks linter fixes header!
Diffstat (limited to 'vnext/src/components/Thread.js')
-rw-r--r-- | vnext/src/components/Thread.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/vnext/src/components/Thread.js b/vnext/src/components/Thread.js index 912f808f..66b5fd62 100644 --- a/vnext/src/components/Thread.js +++ b/vnext/src/components/Thread.js @@ -88,11 +88,10 @@ export default function Thread(props) { setActive(0); loadReplies(); }, []); - useEffect(() => { + useEffect(() => { if (props.connection.addEventListener && message.mid) { props.connection.addEventListener('msg', onReply); - }; - + } return () => { if (props.connection.removeEventListener && message.mid) { props.connection.removeEventListener('msg', onReply); |