mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-01 00:43:15 +00:00
fix(roadtrip): also take intermediate stops into account
A booking's intermediate stops are now part of the route drawn on the map, and they show up in the day list under their place name. They no longer need the pickup and return times to be filled in. Roadtrips that span several days work properly too. A car picked up on one day and returned on the next showed both days as empty, and only the first half of the drive was drawn.
This commit is contained in:
@@ -293,7 +293,7 @@ function carrier(role: CarrierTerminal['role'], over: Partial<CarrierTerminal> =
|
||||
role,
|
||||
title: car ? 'Sixt Hamburg' : 'LH 2020',
|
||||
code: role === 'departure' ? 'HAM' : role === 'arrival' ? 'MUC' : null,
|
||||
at: { departure: '13:20', arrival: '14:30', pickup: '09:00', return: '11:30' }[role],
|
||||
at: { departure: '13:20', arrival: '14:30', pickup: '09:00', return: '11:30', stop: null }[role],
|
||||
...over,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user