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

Fixed: Zip codes starting with 0 now generate the latitude and longitude correctly(#320) #331

Merged
merged 5 commits into from
Nov 7, 2024

Conversation

R-Sourabh
Copy link
Contributor

Related Issues

#320

Short Description and Why It's Useful

  • Added logic to fetch the latitude and longitude for zip codes starting with 0.
  • Added functionality to regenerate the popover when the user edits latitude and longitude from the modal, or when a facility address is added.
  • Also added a check on the facility details page to compare the correct zip code based on latitude and longitude.

Contribution and Currently Important Rules Acceptance

@@ -100,10 +100,12 @@ export default defineComponent({
},
async generateLatLong() {
this.isGeneratingLatLong = true
const postalCode = this.geoPoint.postalCode;
const query = postalCode.startsWith('0') ? `${postalCode} OR ${postalCode.substring(1)}` : `${postalCode}`;
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't need template literals(backticks) when we only have a variable assignment.

@ymaheshwari1 ymaheshwari1 merged commit b85a522 into hotwax:main Nov 7, 2024
2 checks passed
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.

2 participants