From 0c7d4320560dd6cd6e84d19d8127749673b74d86 Mon Sep 17 00:00:00 2001 From: ekzyis <27162016+ekzyis@users.noreply.github.com> Date: Mon, 11 Sep 2023 21:58:11 +0200 Subject: [PATCH] Fix replying to wrong comment (#478) Co-authored-by: ekzyis --- components/reply.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(() => {