This commit is contained in:
estifanos
2026-08-08 09:01:35 +00:00
parent acca2eb097
commit cfc9bc1a93

View File

@@ -39,9 +39,10 @@ export function toAddressPayload(values: AddressValues): AddressPayload {
idNumber: values.idNumber.trim(), idNumber: values.idNumber.trim(),
// Form holds the alpha-2 code (CountrySelect); API stores the full name. // Form holds the alpha-2 code (CountrySelect); API stores the full name.
nationality: getCountryName(values.nationality), nationality: getCountryName(values.nationality),
regionId: clean(values.regionId), regionId,
cityId: clean(values.cityId), cityId,
subCityId: clean(values.subcityId), subCityId,
subcityId: subCityId, // legacy spelling, same value
woredaId: clean(values.woredaId), woredaId: clean(values.woredaId),
kebeleId: clean(values.woredaId), // no separate Kebele field — mirrors woredaId kebeleId: clean(values.woredaId), // no separate Kebele field — mirrors woredaId
streetAddress: clean(values.streetAddress), streetAddress: clean(values.streetAddress),