From 4bc1a87fcf24f47f77257d2d2f5671636dee93b0 Mon Sep 17 00:00:00 2001 From: ajaythapliyal Date: Sat, 25 Feb 2023 08:43:00 +0530 Subject: [PATCH] preserves whitespaces and newlines in message --- frontend/src/conversation/Conversation.tsx | 2 +- frontend/src/conversation/ConversationBubble.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/conversation/Conversation.tsx b/frontend/src/conversation/Conversation.tsx index ab9d9ebf..f07749be 100644 --- a/frontend/src/conversation/Conversation.tsx +++ b/frontend/src/conversation/Conversation.tsx @@ -48,7 +48,7 @@ export default function Conversation() {
{ if (e.key === 'Enter' && !e.shiftKey) { e.preventDefault(); diff --git a/frontend/src/conversation/ConversationBubble.tsx b/frontend/src/conversation/ConversationBubble.tsx index 1283c798..661a3fc4 100644 --- a/frontend/src/conversation/ConversationBubble.tsx +++ b/frontend/src/conversation/ConversationBubble.tsx @@ -33,7 +33,7 @@ const ConversationBubble = forwardRef< {type === 'ERROR' && ( alert )} - {message} +

{message}

);