Skip to content
Merged
Changes from 1 commit
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
4 changes: 2 additions & 2 deletions app/views/ProfileView/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<KeyboardView
Expand Down Expand Up @@ -424,7 +424,7 @@ class ProfileView extends React.Component {
value={newPassword}
onChangeText={value => 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();
Expand Down