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(),
// Form holds the alpha-2 code (CountrySelect); API stores the full name.
nationality: getCountryName(values.nationality),
regionId: clean(values.regionId),
cityId: clean(values.cityId),
subCityId: clean(values.subcityId),
regionId,
cityId,
subCityId,
subcityId: subCityId, // legacy spelling, same value
woredaId: clean(values.woredaId),
kebeleId: clean(values.woredaId), // no separate Kebele field — mirrors woredaId
streetAddress: clean(values.streetAddress),