Fix replying to wrong comment (#478)

Co-authored-by: ekzyis <ek@stacker.news>
This commit is contained in:
ekzyis 2023-09-11 21:58:11 +02:00 committed by GitHub
parent 9d05a5d09f
commit 0c7d432056
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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(() => {