We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cfca57 commit b8ac997Copy full SHA for b8ac997
app/component/itinerary/navigator/NaviCardContainer.js
@@ -181,11 +181,10 @@ function NaviCardContainer(
181
// handle initial focus when not tracking
182
if (currentLeg) {
183
focusToLeg(currentLeg);
184
- destCountRef.current = 0;
185
} else if (time < legTime(firstLeg.start)) {
186
focusToLeg(firstLeg);
187
} else {
188
- focusToLeg(lastLeg);
+ focusToLeg(nextLeg || lastLeg);
189
}
190
focusRef.current = true;
191
0 commit comments