diff --git a/app/composables/useTeamOrders.ts b/app/composables/useTeamOrders.ts index 7b0a9b5..20a9f7a 100644 --- a/app/composables/useTeamOrders.ts +++ b/app/composables/useTeamOrders.ts @@ -28,7 +28,7 @@ export function useTeamOrders() { name: order.name, status: order.status, stages: (order.stages || []) - .filter((s: any) => s.stageType === 'transport' && s.sourceLatitude && s.destinationLatitude) + .filter((s: any) => s.stageType === 'transport' && s.sourceLatitude && s.sourceLongitude && s.destinationLatitude && s.destinationLongitude) .map((s: any) => ({ fromLat: s.sourceLatitude, fromLon: s.sourceLongitude,