From 849915d5db34d3e145a90866cd6a9f7d293539ca Mon Sep 17 00:00:00 2001 From: estifanos Date: Mon, 10 Aug 2026 12:21:05 +0000 Subject: [PATCH] fixes --- .../features/licensing/pages/LicenseApplicationPage.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/portal/src/app/features/licensing/pages/LicenseApplicationPage.tsx b/apps/portal/src/app/features/licensing/pages/LicenseApplicationPage.tsx index c459ed2a3..a4977caab 100644 --- a/apps/portal/src/app/features/licensing/pages/LicenseApplicationPage.tsx +++ b/apps/portal/src/app/features/licensing/pages/LicenseApplicationPage.tsx @@ -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) {