From b1ec263bbdb34b5d73e24928aec5b48ea6c1a9c6 Mon Sep 17 00:00:00 2001 From: koji Date: Fri, 31 May 2024 16:25:25 -0400 Subject: [PATCH] move conditionals into Markdown --- .../src/molecules/ChatDisplay/index.tsx | 41 ++++++------------- 1 file changed, 13 insertions(+), 28 deletions(-) diff --git a/opentrons-ai-client/src/molecules/ChatDisplay/index.tsx b/opentrons-ai-client/src/molecules/ChatDisplay/index.tsx index 64eb5343580..81755ff0b71 100644 --- a/opentrons-ai-client/src/molecules/ChatDisplay/index.tsx +++ b/opentrons-ai-client/src/molecules/ChatDisplay/index.tsx @@ -65,34 +65,19 @@ export function ChatDisplay({ chat, chatId }: ChatDisplayProps): JSX.Element { gridGap={SPACING.spacing16} position={POSITION_RELATIVE} > - {isUser ? ( - - {reply} - - ) : ( - - {reply} - - )} + + {reply} + {!isUser ? (