mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-26 19:12:50 +00:00
fixes
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user