diff --git a/CHANGELOG.md b/CHANGELOG.md index c1dc3a2d..d5b0c89d 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. + ## [3.34.4] - 2023-06-27 ### Fixed diff --git a/react/country/ECU.ts b/react/country/ECU.ts index ed6cf419..ca60c417 100644 --- a/react/country/ECU.ts +++ b/react/country/ECU.ts @@ -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' import type { PostalCodeRules } from '../types/rules' @@ -1278,9 +1278,9 @@ const countryData = { const rules: PostalCodeRules = { country: 'ECU', abbr: 'EC', - postalCodeFrom: ONE_LEVEL, - postalCodeLevels: ['state'], - firstLevelPostalCodes: firstLevelPostalCodes(countryData), + postalCodeFrom: TWO_LEVELS, + postalCodeLevels: ['state', 'city'], + secondLevelPostalCodes: secondLevelPostalCodes(countryData), fields: [ { hidden: true,