mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-26 13:02:50 +00:00
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:
@@ -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>
|
||||
),
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user