diff --git a/components/Chat/Chat.tsx b/components/Chat/Chat.tsx index 1bda61f..4e583e5 100644 --- a/components/Chat/Chat.tsx +++ b/components/Chat/Chat.tsx @@ -471,7 +471,10 @@ export const Chat = memo(({ stopConversationRef }: Props) => { onEdit={(editedMessage) => { setCurrentMessage(editedMessage); // discard edited message and the ones that come after then resend - handleSend(editedMessage, selectedConversation?.messages.length - index); + handleSend( + editedMessage, + selectedConversation?.messages.length - index, + ); }} /> ))}