From 1f356a67b2b67ded28cffcb23291c248ba32cd34 Mon Sep 17 00:00:00 2001 From: siiddhantt Date: Tue, 3 Oct 2023 23:32:08 +0530 Subject: [PATCH] fix: added conditions for error state --- frontend/src/conversation/ConversationBubble.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/frontend/src/conversation/ConversationBubble.tsx b/frontend/src/conversation/ConversationBubble.tsx index 70320bc3..65b5fbef 100644 --- a/frontend/src/conversation/ConversationBubble.tsx +++ b/frontend/src/conversation/ConversationBubble.tsx @@ -100,9 +100,15 @@ const ConversationBubble = forwardRef< > {message} - + {DisableSourceFE || type === 'ERROR' ? null : ( + + )}
-
Sources:
+ {DisableSourceFE || type === 'ERROR' ? null : ( +
+ Sources: +
+ )}
{DisableSourceFE ? null