fix(portal): stop the profile gate hiding the approved registration wizard

/seafarer-registration was wrapped in RequireSeafarerProfile, which sends
an applicant with an incomplete profile to /profile first. That gate
belongs to the replacement design, where registration is filled in from
the profile. Mengestab's approved wizard asks for those same personal,
identity and contact details itself across its four steps, so the gate
bounced the applicant out before they ever saw the form -- which is why
the approved UI looked missing rather than merely unreachable.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
fitse-yotor
2026-08-17 07:05:43 +03:00
parent 29f400618e
commit c52d739e18

View File

@@ -155,12 +155,14 @@ export const router = createBrowserRouter([
// Seafarer
{
path: "/seafarer-registration",
// No profile gate: this wizard asks for the personal, identity and
// contact details itself across its four steps, so sending the
// applicant to /profile first made the approved form unreachable —
// they were bounced out before ever seeing it.
element: (
<RequireSeafarerProfile>
<RequirePermission anyOf={[P.APPLY_SEAFARER_REGISTRATION]}>
<SeafarerRegistrationPage />
</RequirePermission>
</RequireSeafarerProfile>
<RequirePermission anyOf={[P.APPLY_SEAFARER_REGISTRATION]}>
<SeafarerRegistrationPage />
</RequirePermission>
),
},
{