Skip to content

Commit

Permalink
Merge pull request #631 from vtex/fix/german-country-checkout
Browse files Browse the repository at this point in the history
update DEU rules
  • Loading branch information
jeffersontuc authored Dec 9, 2024
2 parents 22a6556 + 38da8b7 commit 066b534
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
34 changes: 17 additions & 17 deletions react/country/DEU.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
Expand Down

0 comments on commit 066b534

Please sign in to comment.