From a1743c82ccf8f25fcc46127c7c21d3df2cfd6096 Mon Sep 17 00:00:00 2001 From: Mckay Wrigley Date: Mon, 27 Mar 2023 07:48:51 -0600 Subject: [PATCH] fix regenerate --- components/Chat/Chat.tsx | 2 +- components/Chat/ChatInput.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/Chat/Chat.tsx b/components/Chat/Chat.tsx index 1a6710e..2c00092 100644 --- a/components/Chat/Chat.tsx +++ b/components/Chat/Chat.tsx @@ -240,7 +240,7 @@ export const Chat: FC = memo( stopConversationRef={stopConversationRef} textareaRef={textareaRef} messageIsStreaming={messageIsStreaming} - conversationIsEmpty={conversation.messages.length > 0} + conversationIsEmpty={conversation.messages.length === 0} model={conversation.model} onSend={(message) => { setCurrentMessage(message); diff --git a/components/Chat/ChatInput.tsx b/components/Chat/ChatInput.tsx index 0e91b2b..39759cf 100644 --- a/components/Chat/ChatInput.tsx +++ b/components/Chat/ChatInput.tsx @@ -1,5 +1,6 @@ import { Message, OpenAIModel, OpenAIModelID } from '@/types'; import { IconPlayerStop, IconRepeat, IconSend } from '@tabler/icons-react'; +import { useTranslation } from 'next-i18next'; import { FC, KeyboardEvent, @@ -7,7 +8,6 @@ import { useEffect, useState, } from 'react'; -import { useTranslation } from 'next-i18next'; interface Props { messageIsStreaming: boolean;