diff --git a/src/redux/selectors/search.js b/src/redux/selectors/search.js index 424cb8d..783aa59 100644 --- a/src/redux/selectors/search.js +++ b/src/redux/selectors/search.js @@ -31,7 +31,7 @@ export const selectSearchQuery: (state: State) => ?string = createSelector( selectCurrentPage, selectCurrentParams, selectSearchValue, - (page: string, params: ?{ query: string }, searchValue) => + (page: string, params: ?{ query: string }, searchValue: string) => page === 'search' ? params && params.query : searchValue );