Skip to content

Commit 3960390

Browse files
committed
chore: reset temporary test constants
1 parent b8ac997 commit 3960390

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/component/itinerary/navigator/NaviUtils.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { ExtendedRouteTypes } from '../../../constants';
99
import { getItineraryPagePath } from '../../../util/path';
1010
import { locationToUri } from '../../../util/otpStrings';
1111

12-
const TRANSFER_SLACK = 600000;
12+
const TRANSFER_SLACK = 60000;
1313
const DISPLAY_MESSAGE_THRESHOLD = 120 * 1000; // 2 minutes
1414

1515
export const DESTINATION_RADIUS = 20; // meters
@@ -337,7 +337,9 @@ export const getTransitLegState = (leg, intl, messages, time) => {
337337
export function itinerarySearchPath(time, leg, nextLeg, position, to) {
338338
let from;
339339
if (leg?.transitLeg) {
340-
from = leg.intermediatePlaces.find(p => legTime(p.arrival) > time + 60000);
340+
from = leg.intermediatePlaces.find(
341+
p => legTime(p.arrival) > time + TRANSFER_SLACK,
342+
);
341343
if (!from) {
342344
from = leg.to;
343345
}

0 commit comments

Comments
 (0)