From 148df2ba97b07dbefb0041a6f2a242897ad99af3 Mon Sep 17 00:00:00 2001 From: Vesa Luusua Date: Fri, 6 Apr 2018 11:54:15 +0300 Subject: [PATCH] Review changes --- src/containers/SearchPage/SearchPage.helpers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/containers/SearchPage/SearchPage.helpers.js b/src/containers/SearchPage/SearchPage.helpers.js index e0514233..d42d2487 100644 --- a/src/containers/SearchPage/SearchPage.helpers.js +++ b/src/containers/SearchPage/SearchPage.helpers.js @@ -6,7 +6,6 @@ import routeConfiguration from '../../routeConfiguration'; // customURLParams export const validURLParamForExtendedData = (paramKey, urlParams, customConfigKeys) => { - //const configKey = customConfigKey(paramKey); const configKey = customConfigKeys[paramKey]; const value = urlParams[paramKey]; const valueArray = value ? value.split(',') : []; @@ -32,7 +31,8 @@ export const validURLParamsForExtendedData = (params, customURLParams, customURL }, {}); }; -// extract search parameters, including a custom attribute named category +// extract search parameters, including a custom URL params +// which are validated by mapping the values to marketplace custom config. export const pickSearchParamsOnly = (params, customURLParams, customURLParamToConfig) => { const { address, origin, bounds, country, ...rest } = params || {}; const boundsMaybe = bounds ? { bounds } : {};