From 931f1da28e6d42f456c22ca911373a06cb67d8d2 Mon Sep 17 00:00:00 2001 From: Louis Date: Thu, 4 Apr 2024 08:53:10 +0700 Subject: [PATCH] fix: duplicated error message (#2602) --- web/screens/Chat/ChatBody/index.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/web/screens/Chat/ChatBody/index.tsx b/web/screens/Chat/ChatBody/index.tsx index be6107d1d..ed950c699 100644 --- a/web/screens/Chat/ChatBody/index.tsx +++ b/web/screens/Chat/ChatBody/index.tsx @@ -34,17 +34,15 @@ const ChatBody: React.FC = () => { )} - {loadModelError ? ( - - ) : ( + {!loadModelError && index === messages.length - 1 && message.status !== MessageStatus.Pending && message.status !== MessageStatus.Ready && ( - ) - )} + )} ))} + {loadModelError && } ) }