Remove getGlobalSearchValue helper function

This commit is contained in:
veekas ashoka 2023-02-22 15:40:35 -05:00
parent 0100866d0a
commit 15b520d6d1

View file

@ -54,14 +54,9 @@ export const getIsSearchingInAConversation = createSelector(
Boolean Boolean
); );
export const getGlobalSearchValue = createSelector(
getSearch,
(state: SearchStateType): boolean | undefined => state.globalSearch
);
export const getIsSearchingGlobally = createSelector( export const getIsSearchingGlobally = createSelector(
getGlobalSearchValue, getSearch,
Boolean (state: SearchStateType): boolean => Boolean(state.globalSearch)
); );
export const getIsSearching = createSelector( export const getIsSearching = createSelector(