From 7d6f3f23c25e67a2196a8f2a714c74fef7e71be1 Mon Sep 17 00:00:00 2001 From: koji Date: Fri, 31 May 2024 16:48:23 -0400 Subject: [PATCH] remove undefined --- opentrons-ai-client/src/molecules/ChatDisplay/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opentrons-ai-client/src/molecules/ChatDisplay/index.tsx b/opentrons-ai-client/src/molecules/ChatDisplay/index.tsx index 81755ff0b71..5c070a290dc 100644 --- a/opentrons-ai-client/src/molecules/ChatDisplay/index.tsx +++ b/opentrons-ai-client/src/molecules/ChatDisplay/index.tsx @@ -72,8 +72,8 @@ export function ChatDisplay({ chat, chatId }: ChatDisplayProps): JSX.Element { h2: HeaderText, li: ListItemText, p: ParagraphText, - a: isUser ? undefined : ExternalLink, - code: isUser ? undefined : CodeText, + a: isUser ? ParagraphText : ExternalLink, + code: isUser ? ParagraphText : CodeText, }} > {reply}