diff --git a/CHANGELOG.md b/CHANGELOG.md index b1608251..783c52ef 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.6] - 2023-08-24 ## [3.34.5] - 2023-08-24 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,