mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 04:08:11 +00:00
fix
This commit is contained in:
@@ -471,11 +471,11 @@ const FirstMilePage = () => {
|
||||
paidBookings.filter(
|
||||
(booking) => {
|
||||
if (existingFirstMileBookingIds.has(booking.id)) return false;
|
||||
return (
|
||||
booking.tradeDirection === "EXPORT" ||
|
||||
(booking.firstMilePickupAddress?.trim() ?? false) ||
|
||||
booking.serviceType?.includesFirstMile
|
||||
);
|
||||
if (booking.paymentStatus !== "PAID") return false;
|
||||
if (booking.tradeDirection !== "EXPORT") return false;
|
||||
const hasPickupAddress = booking.firstMilePickupAddress?.trim() ?? false;
|
||||
const includesFirstMile = booking.serviceType?.includesFirstMile ?? false;
|
||||
return hasPickupAddress || includesFirstMile;
|
||||
},
|
||||
),
|
||||
[existingFirstMileBookingIds, paidBookings],
|
||||
|
||||
Reference in New Issue
Block a user