Skip to content

Commit fd02627

Browse files
committed
feat: close reply input box on reply post
1 parent 01490a9 commit fd02627

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

components/AddReply.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,12 @@ const AddReply = ({ author, _id, addReplyToComment }: ReplyProps) => {
4747
return
4848
}
4949

50-
setReply(replyObj)
50+
setReply({
51+
replyTo: '',
52+
commentID: '',
53+
reply: '',
54+
})
55+
5156
addReplyToComment(_id!, data.newReply)
5257
setComment('')
5358
})

0 commit comments

Comments
 (0)