From 1964d822fbaf317bd952023b2eb3629a58fc5880 Mon Sep 17 00:00:00 2001 From: kaio-donadelli Date: Tue, 11 Jul 2023 09:28:22 -0300 Subject: [PATCH] Fix ECU postal code selection to use cities. --- CHANGELOG.md | 4 ++++ react/country/ECU.js | 10 +++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1b77cc4b..ae83ebc5 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.2] - 2023-06-27 ### Fixed 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,