Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Geocoder Package #24

Merged
merged 1 commit into from
Jun 6, 2023
Merged

Update Geocoder Package #24

merged 1 commit into from
Jun 6, 2023

Conversation

miles-grant-ibigroup
Copy link
Collaborator

Allows for OTP2 Geocoder to work properly

.toLowerCase()
.includes(otherFeature?.properties?.name.toLowerCase()) ||
.includes((otherFeature?.properties?.name || '').toLowerCase()) ||
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I won't block this PR based on this since it was "broken" before, but I think that we should be more careful about using optional chaining to solve problems when our types aren't correct.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is for handling incorrect data coming back from the server. The types are correct, the server is wrong

@miles-grant-ibigroup miles-grant-ibigroup merged commit 0edbb6f into master Jun 6, 2023
@miles-grant-ibigroup miles-grant-ibigroup deleted the update-otp-ui branch June 6, 2023 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants