diff --git a/frontend/src/components/user-settings/user-basic-info-form.js b/frontend/src/components/user-settings/user-basic-info-form.js index 19e42c84b1..763bf159fc 100644 --- a/frontend/src/components/user-settings/user-basic-info-form.js +++ b/frontend/src/components/user-settings/user-basic-info-form.js @@ -14,14 +14,12 @@ class UserBasicInfoForm extends React.Component { const { contact_email, login_id, - name, - telephone + name } = this.props.userInfo; this.state = { contactEmail: contact_email, loginID: login_id, - name: name, - telephone: telephone + name: name }; } @@ -37,17 +35,10 @@ class UserBasicInfoForm extends React.Component { }); } - handleTelephoneInputChange = (e) => { - this.setState({ - telephone: e.target.value - }); - } - handleSubmit = (e) => { e.preventDefault(); let data = { - name: this.state.name, - telephone: this.state.telephone + name: this.state.name }; if (enableUserSetContactEmail) { data.contact_email = this.state.contactEmail; @@ -59,8 +50,7 @@ class UserBasicInfoForm extends React.Component { const { contactEmail, loginID, - name, - telephone + name } = this.state; return ( @@ -93,14 +83,6 @@ class UserBasicInfoForm extends React.Component { )} - {(telephone != undefined) && ( -