mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-28 12:43:11 +10:00
Rename variable
This commit is contained in:
parent
a1433e3ac4
commit
0a3a837f9c
1 changed files with 2 additions and 2 deletions
|
|
@ -18,10 +18,10 @@ import css from './SearchFiltersMobile.css';
|
|||
|
||||
const CATEGORY_URL_PARAM = 'pub_category';
|
||||
const AMENITIES_URL_PARAM = 'pub_amenities';
|
||||
const allowedCategories = [CATEGORY_URL_PARAM, AMENITIES_URL_PARAM];
|
||||
const allowedParams = [CATEGORY_URL_PARAM, AMENITIES_URL_PARAM];
|
||||
|
||||
const validateParamValue = value => value !== null && value !== undefined && value.length > 0;
|
||||
const validateParamKey = key => allowedCategories.includes(key);
|
||||
const validateParamKey = key => allowedParams.includes(key);
|
||||
|
||||
// Check if a filter parameter is included query parameters
|
||||
const hasFilterQueryParams = queryParams => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue