From b6710beadcdc6f47206dfc4739703064f99dd02d Mon Sep 17 00:00:00 2001 From: Ovindu Atukorala Date: Wed, 9 Oct 2024 10:26:17 +0000 Subject: [PATCH] Conditionally render retry button --- frontend/src/conversation/ConversationBubble.tsx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/frontend/src/conversation/ConversationBubble.tsx b/frontend/src/conversation/ConversationBubble.tsx index dd6874f6..1f09696c 100644 --- a/frontend/src/conversation/ConversationBubble.tsx +++ b/frontend/src/conversation/ConversationBubble.tsx @@ -331,12 +331,11 @@ const ConversationBubble = forwardRef< -
-
{retryBtn}
-
+ {type === 'ERROR' && ( +
+
{retryBtn}
+
+ )} {handleFeedback && ( <>