Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/Strexas/kath
Browse files Browse the repository at this point in the history
  • Loading branch information
Dainius Kirsnauskas committed May 29, 2024
2 parents 01cb59d + b137047 commit b92866b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions GUI/front-end/src/components/displays/chat/ChatDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,9 @@ export const ChatDisplay: React.FC<Props> = () => {
const responseResult = await sendRequest.mutateAsync(content);
setIsInputDisabled(false);

const formatedResponse = responseResult.replace(/(?:\r\n|\r|\n)/g, '<br>');

setChatInstances((prevInstances) => [
...prevInstances,
<ChatInstance icon={<KathLogo />} author={applicationContext.name} content={formatedResponse} />,
<ChatInstance icon={<KathLogo />} author={applicationContext.name} content={responseResult} />,
]);

// Temporary mock up response
Expand Down

0 comments on commit b92866b

Please sign in to comment.