diff --git a/CHANGELOG.md b/CHANGELOG.md index b260fe75..729cfbeb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Fixed + +- Ecuador postal code settings to be more granular and show the cities list during check-out. + ## [4.22.3] - 2023-08-23 ### Added diff --git a/react/country/ECU.js b/react/country/ECU.js index 0865d404..bea2a292 100644 --- a/react/country/ECU.js +++ b/react/country/ECU.js @@ -1,5 +1,5 @@ -import { ONE_LEVEL } from '../constants' -import { firstLevelPostalCodes } from '../transforms/postalCodes' +import { TWO_LEVELS } from '../constants' +import { secondLevelPostalCodes } from '../transforms/postalCodes' import { getOneLevel, getTwoLevels } from '../transforms/addressFieldsOptions' const countryData = { @@ -1266,9 +1266,9 @@ const countryData = { export default { country: 'ECU', abbr: 'EC', - postalCodeFrom: ONE_LEVEL, - postalCodeLevels: ['state'], - firstLevelPostalCodes: firstLevelPostalCodes(countryData), + postalCodeFrom: TWO_LEVELS, + postalCodeLevels: ['state', 'city'], + secondLevelPostalCodes: secondLevelPostalCodes(countryData), fields: [ { hidden: true,