From 049c432b8b1f53a82bc04095b1520e18d9764df6 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Wed, 27 Mar 2019 07:58:21 +0100 Subject: [PATCH] annotate parameter with type --- src/redux/selectors/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 );