diff --git a/app/configurations/config.kela.js b/app/configurations/config.kela.js index f601d7ebeb..146fe10915 100644 --- a/app/configurations/config.kela.js +++ b/app/configurations/config.kela.js @@ -96,6 +96,7 @@ export default configMerger(matkaConfig, { show: false, }, showEmbeddedSearch: false, + countrySelection: [], }, showNearYouButtons: false, hideFavourites: true, diff --git a/app/util/configureCountry.js b/app/util/configureCountry.js index 93442fd8e8..1cdc7de180 100644 --- a/app/util/configureCountry.js +++ b/app/util/configureCountry.js @@ -1,7 +1,6 @@ /* eslint-disable no-param-reassign */ -export const configureCountry = (config, countries) => { - if (config.mainMenu.countrySelection) { - const selectedCountries = countries; +export const configureCountry = (config, selectedCountries) => { + if (config.mainMenu.countrySelection?.length > 0) { const keys = Object.keys(selectedCountries); let boundaries = config.additionalSearchParams.default['boundary.country']; let feedIds = [...config.feedIds];