-
Notifications
You must be signed in to change notification settings - Fork 12
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
Handle empty geoCoordinate array in orderForm #88
base: master
Are you sure you want to change the base?
Conversation
Add condition to check if geoCoordinates array in orderForm is not empty before assigning it to center.
Hi! I'm VTEX IO CI/CD Bot and I'll be helping you to publish your app! 🤖 Please select which version do you want to release:
And then you just need to merge your PR when you are ready! There is no need to create a release commit/tag.
|
Beep boop 🤖 I noticed you didn't make any changes at the
In order to keep track, I'll create an issue if you decide now is not a good time
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Add condition to check if geoCoordinates array in orderForm is not empty before assigning it to center.
What problem is this solving?
If orderForm has addresses only with postal codes and no geoCoordinates, the center map function fails. Hence, it must first check if the used array is not actually empty.
How to test it?
dndstorelocator