Skip to content

Commit

Permalink
fix(test): cypress
Browse files Browse the repository at this point in the history
  • Loading branch information
Shoaibdev7 committed Oct 19, 2024
1 parent d4f4698 commit c4b3ed5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/stores/useAppStore/index.ts
Original file line number Diff line number Diff line change
@@ -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'

Expand Down Expand Up @@ -75,9 +75,7 @@ export const useAppStore = create<AppStore>((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 }),
Expand Down

0 comments on commit c4b3ed5

Please sign in to comment.