When searching for a zipcode starting with 0, we get an error regarding zipcode not being found, but there are zipcodes in US starting with 0 (02134).
Expected behavior
Searching should work for all the valid US zipcodes.
Steps to reproduce the issue
Go to details page for any facility
Click the edit button on the Latitude & Longitude card
Search for a zip code starting with 0 (02134) by clicking the Generate button
Verify that an error toast message is displayed
Search for the zipcode again but after removing leading 0 (2134), and verify that the latlng are generated successfully
Can you handle fixing this bug by yourself?
[x] YES
[ ] NO
Environment details
Browser:
OS:
Code Version:
Additional information
Update the api payload to pass q: "postcode: 02134 OR 2134" when searching for a zipcode with a leading 0.
Also need to update the logic when checking for valid zipcode on the details page, as when moving to the facility details page, we check whether the postalCode and lat-lng already added on the facility matches or not, and if not we display the postalCode in red, so need to update the logic here that if the added postalCode on the facility starts with a 0, then match the postalCode with the response postal code for both values(02134 OR 2134).
Current behavior
When searching for a zipcode starting with 0, we get an error regarding zipcode not being found, but there are zipcodes in US starting with 0 (02134).
Expected behavior
Searching should work for all the valid US zipcodes.
Steps to reproduce the issue
Generate
buttonCan you handle fixing this bug by yourself?
Environment details
Additional information
Update the api payload to pass
q: "postcode: 02134 OR 2134"
when searching for a zipcode with a leading 0.Also need to update the logic when checking for valid zipcode on the details page, as when moving to the facility details page, we check whether the postalCode and lat-lng already added on the facility matches or not, and if not we display the postalCode in red, so need to update the logic here that if the added postalCode on the facility starts with a 0, then match the postalCode with the response postal code for both values(02134 OR 2134).