Skip to content

Commit 24eb761

Browse files
revert business phone to be mandatory field in profile settings
1 parent 7f1c450 commit 24eb761

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/routes/settings/routes/profile/components/ProfileSettingsForm.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ class ProfileSettingsForm extends Component {
186186
<div className="field">
187187
<div className="label">
188188
<span styleName="fieldLabelText">Business Phone</span>&nbsp;
189+
<sup styleName="requiredMarker">*</sup>
189190
</div>
190191
<div className="input-field">
191192
<PhoneInput
@@ -199,7 +200,8 @@ class ProfileSettingsForm extends Component {
199200
validationError="Invalid business phone"
200201
showCheckMark
201202
listCountry={ISOCountries}
202-
forceCountry={!disablePhoneInput && this.state.countrySelected}
203+
required
204+
forceCountry={this.state.countrySelected}
203205
value={this.props.values.settings.businessPhone ? this.props.values.settings.businessPhone : ''}
204206
onChangeCountry={this.onBusinessPhoneCountryChange}
205207
onOutsideClick={this.hideBusinessPhoneAlert}

0 commit comments

Comments
 (0)