From 87a920174e2705fbe92f3c33eca4f6237052dd9c Mon Sep 17 00:00:00 2001 From: Dakshesh Jain <65905942+dakshesh14@users.noreply.github.com> Date: Wed, 2 Aug 2023 14:21:48 +0530 Subject: [PATCH] fix: comment reaction mutation (#1768) --- apps/app/hooks/use-comment-reaction.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/app/hooks/use-comment-reaction.tsx b/apps/app/hooks/use-comment-reaction.tsx index 16469f66a..6deb4d9fb 100644 --- a/apps/app/hooks/use-comment-reaction.tsx +++ b/apps/app/hooks/use-comment-reaction.tsx @@ -70,7 +70,8 @@ const useCommentReaction = ( mutateCommentReactions( (prevData) => - prevData?.filter((r) => r.actor !== user?.user?.id || r.reaction !== reaction) || [] + prevData?.filter((r) => r.actor !== user?.user?.id || r.reaction !== reaction) || [], + false ); await reactionService.deleteIssueCommentReaction(