From ca9e71087b9832dd4132d675d13a301ffc355ffd Mon Sep 17 00:00:00 2001 From: Siddhant Rai Date: Mon, 19 Aug 2024 17:40:46 +0530 Subject: [PATCH] fix: revert changes --- frontend/src/conversation/ConversationBubble.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/frontend/src/conversation/ConversationBubble.tsx b/frontend/src/conversation/ConversationBubble.tsx index 4fc0f172..6cb97f40 100644 --- a/frontend/src/conversation/ConversationBubble.tsx +++ b/frontend/src/conversation/ConversationBubble.tsx @@ -15,7 +15,6 @@ import Sources from '../assets/sources.svg'; import Avatar from '../components/Avatar'; import CopyButton from '../components/CopyButton'; import Sidebar from '../components/Sidebar'; -import { selectChunks } from '../preferences/preferenceSlice'; import classes from './ConversationBubble.module.css'; import { FEEDBACK, MESSAGE_TYPE } from './conversationModels'; @@ -36,7 +35,6 @@ const ConversationBubble = forwardRef< { message, type, className, feedback, handleFeedback, sources, retryBtn }, ref, ) { - const chunks = useSelector(selectChunks); const [isLikeHovered, setIsLikeHovered] = useState(false); const [isDislikeHovered, setIsDislikeHovered] = useState(false); const [isLikeClicked, setIsLikeClicked] = useState(false); @@ -64,7 +62,6 @@ const ConversationBubble = forwardRef< > {DisableSourceFE || type === 'ERROR' || - chunks === '0' || sources?.length === 0 || sources?.some( (source) => source.source === 'None',