From 284b7f80dab06fdb453a059e2286ab6c75306e8b Mon Sep 17 00:00:00 2001 From: Dakshesh Jain Date: Wed, 2 Aug 2023 13:56:07 +0530 Subject: [PATCH] fix: comment reaction mutation --- 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 16469f66a4d..6deb4d9fb18 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(