mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-26 19:12:50 +00:00
fixes
This commit is contained in:
@@ -140,12 +140,12 @@ export function LicenseApplicationPage() {
|
||||
};
|
||||
|
||||
if (address.nationality) {
|
||||
// Profile stores the full country name; a SELECT field's options
|
||||
// follow the CountrySelect convention of alpha-2 codes.
|
||||
// Profile stores the full country name; the field always renders as
|
||||
// a CountrySelect (see ConfigDrivenSection), which takes alpha-2
|
||||
// codes regardless of the backend's configured field type.
|
||||
fill(
|
||||
(label, key) => key === 'nationality' || label.includes('nationality'),
|
||||
(field) =>
|
||||
field.type === 'SELECT' ? (getCountryCode(address.nationality) ?? address.nationality) : address.nationality,
|
||||
() => getCountryCode(address.nationality) ?? address.nationality,
|
||||
);
|
||||
}
|
||||
if (address.idType === 'NID' && address.idNumber) {
|
||||
|
||||
Reference in New Issue
Block a user