Skip to content

Commit b8ac997

Browse files
committed
fix: focus without geolocation during a wait leg
Navi focused on last leg if current leg was undefined
1 parent 2cfca57 commit b8ac997

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/component/itinerary/navigator/NaviCardContainer.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,11 +181,10 @@ function NaviCardContainer(
181181
// handle initial focus when not tracking
182182
if (currentLeg) {
183183
focusToLeg(currentLeg);
184-
destCountRef.current = 0;
185184
} else if (time < legTime(firstLeg.start)) {
186185
focusToLeg(firstLeg);
187186
} else {
188-
focusToLeg(lastLeg);
187+
focusToLeg(nextLeg || lastLeg);
189188
}
190189
focusRef.current = true;
191190
}

0 commit comments

Comments
 (0)