diff --git a/components/reply.js b/components/reply.js index 0dd9bf98..859a695e 100644 --- a/components/reply.js +++ b/components/reply.js @@ -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(() => {