Skip to content

Commit

Permalink
Merge pull request #5186 from HSLdevcom/fix-missing-optional-chain
Browse files Browse the repository at this point in the history
Added missing optional chaining
  • Loading branch information
vesameskanen authored Dec 4, 2024
2 parents 6d1e437 + 4c96990 commit 7d0a8b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/component/itinerary/ItineraryPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -1197,7 +1197,7 @@ export default function ItineraryPage(props, context) {
const pastSearch =
Date.parse(combinedEdges[selectedIndex]?.node.end) < Date.now();
const navigateHook =
!desktop && config.experimental.navigation && !pastSearch
!desktop && config.experimental?.navigation && !pastSearch
? () =>
storeItineraryAndStartNavigation(
combinedEdges[selectedIndex]?.node,
Expand Down

0 comments on commit 7d0a8b8

Please sign in to comment.