Skip to content

Commit

Permalink
lodashget for the initial location
Browse files Browse the repository at this point in the history
  • Loading branch information
Pujan92 committed Sep 5, 2023
1 parent 74ea16f commit cb962c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ConfirmedRoute.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function ConfirmedRoute({mapboxAccessToken, transaction}) {
pitchEnabled={false}
initialState={{
zoom: CONST.MAPBOX.DEFAULT_ZOOM,
location: waypointMarkers[0].coordinate,
location: lodashGet(waypointMarkers , [0, 'coordinate'], CONST.MAPBOX.DEFAULT_COORDINATE),
}}
directionCoordinates={coordinates}
style={styles.mapView}
Expand Down

0 comments on commit cb962c9

Please sign in to comment.