diff --git a/apps/portal/src/app/features/profile/types/address.ts b/apps/portal/src/app/features/profile/types/address.ts index b860e3d37..ef374b4b5 100644 --- a/apps/portal/src/app/features/profile/types/address.ts +++ b/apps/portal/src/app/features/profile/types/address.ts @@ -39,13 +39,9 @@ export function toAddressPayload(values: AddressValues): AddressPayload { idNumber: values.idNumber.trim(), // Form holds the alpha-2 code (CountrySelect); API stores the full name. nationality: getCountryName(values.nationality), - regionId, - cityId, - // `subCityId` is the profile field. The address endpoint has accepted - // the older lower-case spelling too, so submit the same selected id under - // both names until its DTO is fully aligned. - subCityId, - subcityId: subCityId, + regionId: clean(values.regionId), + cityId: clean(values.cityId), + subCityId: clean(values.subcityId), woredaId: clean(values.woredaId), kebeleId: clean(values.woredaId), // no separate Kebele field — mirrors woredaId streetAddress: clean(values.streetAddress),