We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 886887f + dc7a130 commit b8739d7Copy full SHA for b8739d7
src/components/account/AddAccountAddress.js
@@ -126,7 +126,7 @@ class AddAccountAddress extends Component {
126
renderRegions = () => {
127
const theme = this.context;
128
const { countryId, countries } = this.props;
129
- if (countryId && countryId.length && countries.length) {
+ if (countryId && countryId.length && countries && countries.length) {
130
const country = countries.find(item => item.id === countryId);
131
if (country && country.available_regions) {
132
const data = country.available_regions.map(value => ({
0 commit comments