From 38da8b7459d629a8b89045e2cb84865ddac09351 Mon Sep 17 00:00:00 2001 From: beatrizmaselli Date: Fri, 22 Nov 2024 14:06:06 +0100 Subject: [PATCH] update DEU rules --- CHANGELOG.md | 3 +++ react/country/DEU.ts | 34 +++++++++++++++++----------------- 2 files changed, 20 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e5c569a6..314f4496 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Fixed +- Add optionsPairs for DEU to complain with checkout autocomplete. + ## [3.38.0] - 2024-10-30 ### Fixed diff --git a/react/country/DEU.ts b/react/country/DEU.ts index 86b082ad..9ddf3cba 100644 --- a/react/country/DEU.ts +++ b/react/country/DEU.ts @@ -72,23 +72,23 @@ const rules: PostalCodeRules = { label: 'province', required: true, optionsCaption: '', - options: [ - 'Baden-Württemberg', - 'Bayern', - 'Berlin', - 'Brandenburg', - 'Bremen', - 'Hamburg', - 'Hessen', - 'Mecklenburg-Vorpommern', - 'Niedersachsen', - 'Nordrhein-Westfalen', - 'Rheinland-Pfalz', - 'Saarland', - 'Sachsen', - 'Sachsen-Anhalt', - 'Schleswig-Holstein', - 'Thüringen', + optionsPairs: [ + { label: 'Baden-Württemberg', value: 'BW' }, + { label: 'Bayern', value: 'BY' }, + { label: 'Berlin', value: 'BE' }, + { label: 'Brandenburg', value: 'BB' }, + { label: 'Bremen', value: 'HB' }, + { label: 'Hamburg', value: 'HH' }, + { label: 'Hessen', value: 'HE' }, + { label: 'Mecklenburg-Vorpommern', value: 'MV' }, + { label: 'Niedersachsen', value: 'NI' }, + { label: 'Nordrhein-Westfalen', value: 'NW' }, + { label: 'Rheinland-Pfalz', value: 'RP' }, + { label: 'Saarland', value: 'SL' }, + { label: 'Sachsen', value: 'SN' }, + { label: 'Sachsen-Anhalt', value: 'ST' }, + { label: 'Schleswig-Holstein', value: 'SH' }, + { label: 'Thüringen', value: 'TH' }, ], size: 'large', },