From 3901816c038455eccd26a70a49ceb083b1eba6c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D0=B0=D1=81=D1=83=D0=BB?= Date: Fri, 1 Nov 2024 12:34:38 +0300 Subject: [PATCH] feat: hide ask quesiont, if feautureflag is false --- src/components/App/index.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/App/index.tsx b/src/components/App/index.tsx index bf355b12b..b5eadffae 100644 --- a/src/components/App/index.tsx +++ b/src/components/App/index.tsx @@ -323,9 +323,11 @@ export const App = () => { useEffect(() => { if (!splashDataLoading) { - setUniverseQuestionIsOpen() + if (chatInterfaceFeatureFlag) { + setUniverseQuestionIsOpen() + } } - }, [setUniverseQuestionIsOpen, splashDataLoading]) + }, [setUniverseQuestionIsOpen, splashDataLoading, chatInterfaceFeatureFlag]) return ( <>