mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-27 23:40:57 +00:00
feat: include location and physical attributes in seafarer registration default answers
This commit is contained in:
@@ -117,6 +117,12 @@ function withProfileDefaults(
|
||||
emergencyContactPhone: a?.emergencyContactPhone || null,
|
||||
emergencyContactRelationship: a?.emergencyContactRelation || null,
|
||||
department: profile.seafarerDepartment || null,
|
||||
// Deepest saved level the picker's maxDepth of 3 can show.
|
||||
locationId: a?.subCityId || a?.cityId || a?.regionId || null,
|
||||
hairColor: (profile.hairColor as SaveSeafarerRegistration['hairColor']) || null,
|
||||
eyeColor: (profile.eyeColor as SaveSeafarerRegistration['eyeColor']) || null,
|
||||
bloodType: (profile.bloodType as SaveSeafarerRegistration['bloodType']) || null,
|
||||
heightCm: profile.heightCm ?? null,
|
||||
};
|
||||
const next = { ...answers };
|
||||
for (const [key, value] of Object.entries(defaults) as [AnswerKey, unknown][]) {
|
||||
|
||||
Reference in New Issue
Block a user