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.
1 parent a36207f commit 51ecdf0Copy full SHA for 51ecdf0
src/profile/forms/Country.jsx
@@ -49,8 +49,9 @@ class Country extends React.Component {
49
50
isDisabledCountry = (country) => {
51
const { countries } = this.props;
52
+ const countriesCode = new Set(countries.map(({ code }) => code));
53
- return countries.length > 0 && !new Set(countries.map(({ code }) => code)).has(country);
54
+ return countries.length > 0 && !countriesCode.has(country);
55
};
56
57
render() {
0 commit comments