Skip to content

Commit

Permalink
fix: added break lines
Browse files Browse the repository at this point in the history
  • Loading branch information
PauliusPreiksaCode committed May 28, 2024
1 parent 1ca9611 commit 900f025
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion GUI/front-end/src/components/displays/chat/ChatDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,11 @@ 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={responseResult} />,
<ChatInstance icon={<KathLogo />} author={applicationContext.name} content={formatedResponse} />,
]);

// Temporary mock up response
Expand Down

0 comments on commit 900f025

Please sign in to comment.