Fix replying to wrong comment (#478)
Co-authored-by: ekzyis <ek@stacker.news>
This commit is contained in:
parent
9d05a5d09f
commit
0c7d432056
|
@ -94,7 +94,7 @@ export default function Reply ({ item, onSuccess, replyOpen, children, placehold
|
|||
await upsertComment({ variables: { parentId, hash, hmac, ...values } })
|
||||
resetForm({ text: '' })
|
||||
setReply(replyOpen || false)
|
||||
}, [upsertComment, setReply])
|
||||
}, [upsertComment, setReply, parentId])
|
||||
|
||||
const replyInput = useRef(null)
|
||||
useEffect(() => {
|
||||
|
|
Loading…
Reference in New Issue