From 4ec585f4075581b60505243fc6411eb4304b2fed Mon Sep 17 00:00:00 2001 From: estifanos Date: Thu, 27 Aug 2026 06:47:44 +0000 Subject: [PATCH] feat: include location and physical attributes in seafarer registration default answers --- .../pages/SeafarerRegistrationPage.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/portal/src/app/features/seafarer-registration/pages/SeafarerRegistrationPage.tsx b/apps/portal/src/app/features/seafarer-registration/pages/SeafarerRegistrationPage.tsx index ad229976d..abfd257cc 100644 --- a/apps/portal/src/app/features/seafarer-registration/pages/SeafarerRegistrationPage.tsx +++ b/apps/portal/src/app/features/seafarer-registration/pages/SeafarerRegistrationPage.tsx @@ -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][]) {