diff --git a/src/stores/useAppStore/index.ts b/src/stores/useAppStore/index.ts index 5aff74043..370a08756 100644 --- a/src/stores/useAppStore/index.ts +++ b/src/stores/useAppStore/index.ts @@ -1,6 +1,6 @@ import { create } from 'zustand' import { TAboutParams } from '~/network/fetchSourcesData' -import { useFeatureFlagStore } from '../useFeatureFlagStore' +import { useFeatureFlagStore } from '~/stores/useFeatureFlagStore' export type SecondarySidebarActiveTab = '' | 'sentiment' | 'sources' | 'about' @@ -75,9 +75,7 @@ export const useAppStore = create((set, get) => ({ setUniverseQuestionIsOpen: () => { const { chatInterfaceFeatureFlag } = useFeatureFlagStore.getState() - if (chatInterfaceFeatureFlag) { - set({ universeQuestionIsOpen: !get().universeQuestionIsOpen }) - } + set({ universeQuestionIsOpen: chatInterfaceFeatureFlag ? !get().universeQuestionIsOpen : false }) }, setAppMetaData: (appMetaData) => set({ appMetaData }), setShowCollapseButton: (showCollapseButton) => set({ showCollapseButton }),