This commit is contained in:
estifanos
2026-08-10 12:21:05 +00:00
parent 2495cd4cb8
commit 849915d5db

View File

@@ -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) {