Skip to content

Commit

Permalink
🪲 small bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Karagappa authored and Karagappa committed Dec 5, 2024
1 parent 16e35fd commit 61852af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/TripChainView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default function TripChainView(): JSX.Element {

const getLocation = useCallback(
(id: number) => {
return context.locations?.all().find((location) => location.location_id === id);
return context.locations?.find((location) => location.location_id === id);
},
[context.locations]
);
Expand Down

0 comments on commit 61852af

Please sign in to comment.