Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/components/Select/Select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
$reactselectheight : 40px;
$reactselectcontentheight: 20px;
@mixin reactselectstyles {
line-height: normal;

&.height-auto .react-select__control{
height: auto;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class ProfileSettingsForm extends Component {
}
}

onBusinessPhoneCountryChange({ country, externalChange, isValid }) {
onBusinessPhoneCountryChange({ country, externalChange, isValid: isValidForApi }) {
const { countrySelected: previousSelectedCountry } = this.state

if (country && country.code) {
Expand All @@ -78,14 +78,14 @@ class ProfileSettingsForm extends Component {
countrySelected: country.name,
})
}
if (!this.state.businessPhoneValid && isValid) {
this.setState({
businessPhoneValid: true,
})
}
}

if (this.state.businessPhoneValid && !isValid) {
const isValid = isValidForApi && country && country.code
if (!this.state.businessPhoneValid && isValid) {
this.setState({
businessPhoneValid: true,
})
} else if (this.state.businessPhoneValid && !isValid) {
this.setState({
businessPhoneValid: false,
})
Expand Down