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

fix(nearby-view): Avoid blank nearby view on mobile #1264

Merged
merged 4 commits into from
Sep 6, 2024

Conversation

amy-corson-ibigroup
Copy link
Contributor

Description:

Fixes a bug where, on mobile when user had denied geolocation, a blank page was being displayed due to lack of coordinates. This was happening because the desktop fallback (using the map center as the nearby point) required rendering a map, and mobile does not. Instead, now we pass the initLon and initLat from the config.

PR Checklist:

  • Does the code follow accessibility standards (WCAG 2.1 AA Compliant)?
  • Are all languages supported (Internationalization/Localization)?
  • Are appropriate Typescript types implemented?

Copy link
Contributor

@daniel-heppner-ibigroup daniel-heppner-ibigroup left a comment

Choose a reason for hiding this comment

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

Looks good! Nice change. This isn't a new config item right?

@amy-corson-ibigroup
Copy link
Contributor Author

Nope! The map initLat and initLon coordinates were already there!

Copy link
Contributor

@josh-willis-arcadis josh-willis-arcadis left a comment

Choose a reason for hiding this comment

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

LGTM

@amy-corson-ibigroup amy-corson-ibigroup merged commit 65abb40 into dev Sep 6, 2024
9 checks passed
@amy-corson-ibigroup amy-corson-ibigroup deleted the fix-mobile-nearby branch September 6, 2024 18:28
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