diff --git a/src/ui/flights/FlightList.tsx b/src/ui/flights/FlightList.tsx index d4a7a2b5..61a64198 100644 --- a/src/ui/flights/FlightList.tsx +++ b/src/ui/flights/FlightList.tsx @@ -116,22 +116,19 @@ export const FlightList: FC = ({ onFlightClick(flight), - // When expandable is off we need a row-level onClick to - // trigger navigation — rowClickable in FlightCard depends - // on `expandable || Boolean(onClick)`. - ...(direction === "schedule" - ? { onClick: () => onFlightClick(flight) } - : {}), - } + ? { onViewDetails: () => onFlightClick(flight) } : {})} {...(renderExpandedBody ? { renderExpandedBody } : {})} {...(renderActions ? { renderActions } : {})}