From f7c3ca5c3aa409df471e49c735a65772109a5994 Mon Sep 17 00:00:00 2001 From: PopDaph Date: Tue, 3 Oct 2023 11:17:57 +0200 Subject: [PATCH] feedback rename function --- .../assistant/conversation/ConversationMessage.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/front/components/assistant/conversation/ConversationMessage.tsx b/front/components/assistant/conversation/ConversationMessage.tsx index f9f7943db1176..939446fc105ba 100644 --- a/front/components/assistant/conversation/ConversationMessage.tsx +++ b/front/components/assistant/conversation/ConversationMessage.tsx @@ -53,7 +53,7 @@ export function ConversationMessage({ void loadEmojiData(); }, []); - const handleSelectEmoji = async ({ + const handleEmoji = async ({ emoji, isToRemove, }: { @@ -114,7 +114,7 @@ export function ConversationMessage({ { - await handleSelectEmoji({ + await handleEmoji({ emoji: reaction.emoji, isToRemove: hasReacted, }); @@ -174,7 +174,7 @@ export function ConversationMessage({ reaction.users.find((u) => u.userId === user.id) !== undefined) || false; - await handleSelectEmoji({ + await handleEmoji({ emoji: emojiData.id, isToRemove: hasReacted, });