Skip to content

Commit

Permalink
fix: added missing optional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
partisaani authored Dec 4, 2024
1 parent 6d1e437 commit 4c96990
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 4c96990

Please sign in to comment.