From d74757b5449f704e135c51fbf46a20b34db663eb Mon Sep 17 00:00:00 2001 From: Rankin Zheng Date: Wed, 11 Oct 2023 23:51:57 +0800 Subject: [PATCH] Refactor MessageList component - Add a condition to render the 'Card' component only when 'confirm' is true. - This change ensures that the 'Card' component is only displayed for bot messages when the 'confirm' prop is true. --- src/views/components/MessageList/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/components/MessageList/index.tsx b/src/views/components/MessageList/index.tsx index 1190e96..925fa9b 100644 --- a/src/views/components/MessageList/index.tsx +++ b/src/views/components/MessageList/index.tsx @@ -70,7 +70,7 @@ const MessageList = observer((props: any) => { whiteSpace: 'break-spaces' }, }}> - { messageType === 'bot' && + { messageType === 'bot' && confirm &&