From d7ecc861777c192eb807c11eece776bfce6cca65 Mon Sep 17 00:00:00 2001 From: estifanos Date: Tue, 11 Aug 2026 11:10:14 +0000 Subject: [PATCH] fix: restore vessel transfer logic and update vessel selection component(uncommenting) --- .../components/ConfigDrivenSection.tsx | 29 +++++-------------- .../pages/VesselTransferPage.tsx | 14 +++------ 2 files changed, 11 insertions(+), 32 deletions(-) diff --git a/apps/portal/src/app/features/licensing/components/ConfigDrivenSection.tsx b/apps/portal/src/app/features/licensing/components/ConfigDrivenSection.tsx index d5814f2a3..858da4e8c 100644 --- a/apps/portal/src/app/features/licensing/components/ConfigDrivenSection.tsx +++ b/apps/portal/src/app/features/licensing/components/ConfigDrivenSection.tsx @@ -134,29 +134,12 @@ export function ConfigDrivenSection({ onChange={(v) => onChange(field.key, v)} /> ) : isVesselPicker ? ( - // ponytail: swapped for a plain text input while testing — - // vessels list is empty until the backend seed exists. Paste a - // vessel id here to exercise the autofill; restore the Select - // below once GET /vessels/mine returns real rows. - // v.status === 'REGISTERED', - // ); - const hasTransferableVessel = true; + const hasTransferableVessel = (vessels ?? []).some( + (v) => v.status === 'REGISTERED', + ); if (loadingVessels || loadingApplications) { return ( @@ -172,10 +169,7 @@ export function VesselTransferPage() { {(vessels ?? []).map((vessel) => { - // ponytail: gate disabled for testing — always show - // Transfer regardless of vessel.status. Restore - // `vessel.status === 'REGISTERED'` before shipping. - const canTransfer = true; + const canTransfer = vessel.status === 'REGISTERED'; return (