From cc1d286d55eb3201f1cc2daa4aedd84e38e50f9d Mon Sep 17 00:00:00 2001 From: Shoaibdev7 Date: Mon, 14 Oct 2024 15:31:53 +0500 Subject: [PATCH] fix(ai-chat): ai screen on default part of feature flag --- src/components/App/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/App/index.tsx b/src/components/App/index.tsx index 482901655..cb268fa5d 100644 --- a/src/components/App/index.tsx +++ b/src/components/App/index.tsx @@ -322,10 +322,10 @@ export const App = () => { }, [runningProjectId, setRunningProjectMessages]) useEffect(() => { - if (!splashDataLoading) { + if (chatInterfaceFeatureFlag && !splashDataLoading) { setUniverseQuestionIsOpen() } - }, [setUniverseQuestionIsOpen, splashDataLoading]) + }, [setUniverseQuestionIsOpen, splashDataLoading, chatInterfaceFeatureFlag]) return ( <> @@ -340,7 +340,7 @@ export const App = () => { - {!universeQuestionIsOpen && } + {!universeQuestionIsOpen && chatInterfaceFeatureFlag && }