dimaportenko / magento-react-native

React Native mobile app for Magento 2.x
MIT License
297 stars 158 forks source link

Problems when adding an address #158

Closed sidneylopes closed 4 years ago

sidneylopes commented 4 years ago

When I press the Add Address button, I have the following error:

Screenshot_1605285693

Here is the part of the code that has "countries.find":

const country = countries.find(item => item.id === countryId);

How can I fix it (my app is only for Brazil)?

sidneylopes commented 4 years ago

I also just noticed that the error doesn't happen every time

dimaportenko commented 4 years ago
  1. Can you share reproduce steps?
  2. Are you using persist state?
  3. If you don't a universal solution for any country configured from the Magento side, you can hardcode Brazil value.