Skip to content

Commit

Permalink
Fix app crashing on ios when route is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
rayane-djouah committed Jan 11, 2024
1 parent ee491d0 commit adbfc25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ConfirmedRoute.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function ConfirmedRoute({mapboxAccessToken, transaction}: ConfirmedRouteProps) {
const {isOffline} = useNetwork();
const {route0: route} = transaction.routes ?? {};
const waypoints = transaction.comment?.waypoints ?? {};
const coordinates = route.geometry?.coordinates ?? [];
const coordinates = route?.geometry?.coordinates ?? [];
const theme = useTheme();
const styles = useThemeStyles();

Expand Down

0 comments on commit adbfc25

Please sign in to comment.