diff --git a/app/screens/edit_profile/index.js b/app/screens/edit_profile/index.js index 44ee8b27f..ee29b73a3 100644 --- a/app/screens/edit_profile/index.js +++ b/app/screens/edit_profile/index.js @@ -15,7 +15,7 @@ import EditProfile from './edit_profile'; function mapStateToProps(state, ownProps) { const config = getConfig(state); const {serverVersion} = state.entities.general; - const {service} = ownProps.currentUser; + const {auth_service: service} = ownProps.currentUser; const firstNameDisabled = (service === 'ldap' && config.LdapFirstNameAttributeSet === 'true') || (service === 'saml' && config.SamlFirstNameAttributeSet === 'true');