diff --git a/app/views/ProfileView/index.js b/app/views/ProfileView/index.js index aab3c76d..25989cf0 100644 --- a/app/views/ProfileView/index.js +++ b/app/views/ProfileView/index.js @@ -366,7 +366,7 @@ class ProfileView extends React.Component { const { name, username, email, newPassword, avatarUrl, customFields, avatar, saving, showPasswordAlert } = this.state; - const { baseUrl, user } = this.props; + const { baseUrl, user, Accounts_CustomFields } = this.props; return ( this.setState({ newPassword: value })} onSubmitEditing={() => { - if (Object.keys(customFields).length) { + if (Accounts_CustomFields && Object.keys(customFields).length) { return this[Object.keys(customFields)[0]].focus(); } this.avatarUrl.focus();