Skip to content

Commit

Permalink
fix: revert new lines
Browse files Browse the repository at this point in the history
  • Loading branch information
PauliusPreiksaCode committed May 29, 2024
1 parent c4c457b commit b137047
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 b137047

Please sign in to comment.