Regions without shortCode
can't be selected
#325
Labels
bug
Something isn't working
dependencies
Related to external dependencies
full stack
Requires work on both the front and back ends of the application
good first issue
Good for newcomers
hacktoberfest
Recommended issues for hacktoberfest participants
Describe the bug
We are using country-region-data as our list of countries and regions. It turns out that there are some regions without short codes, as can be seen in country-regions/country-region-data#70. As a result of this, there are some regions that can't be selected when creating/updating a user or an event, as we expect them to have a short code.
To Reproduce
Steps to reproduce the behavior:
Cayman Islands
as their countrySave
Expected behavior
Regions without short codes should be selectable too.
Additional context
This problem was originally discovered here. As done there, we can use the region name as a fallback until the upstream issue referenced above is fixed.
The text was updated successfully, but these errors were encountered: