diff --git a/frontend/src/conversation/Conversation.tsx b/frontend/src/conversation/Conversation.tsx index 8083710..1695f71 100644 --- a/frontend/src/conversation/Conversation.tsx +++ b/frontend/src/conversation/Conversation.tsx @@ -187,74 +187,71 @@ export default function Conversation() { })} )} + {queries.length === 0 && } +
- {!lastQueryReturnedErr ? ( -
-
{ - if (e.key === 'Enter' && !e.shiftKey) { - e.preventDefault(); - if (inputRef.current?.textContent && status !== 'loading') { - handleQuestion({ question: inputRef.current.textContent }); - inputRef.current.textContent = ''; - } + {lastQueryReturnedErr && ( + + )} + +
+
{ + if (e.key === 'Enter' && !e.shiftKey) { + e.preventDefault(); + if (inputRef.current?.textContent && status !== 'loading') { + handleQuestion({ question: inputRef.current.textContent }); + inputRef.current.textContent = ''; } - }} - >
- {status === 'loading' ? ( + } + }} + >
+ {status === 'loading' ? ( + + ) : ( +
{ + if (inputRef.current?.textContent) { + handleQuestion({ + question: inputRef.current.textContent, + }); + inputRef.current.textContent = ''; + } + }} + src={isDarkTheme ? SendDark : Send} > - ) : ( -
- { - if (inputRef.current?.textContent) { - handleQuestion({ - question: inputRef.current.textContent, - }); - inputRef.current.textContent = ''; - } - }} - src={isDarkTheme ? SendDark : Send} - > -
- )} -
- ) : ( -
-

- There was an error during generation -

- -
- )} +
+ )} +

{t('tagline')}