diff --git a/client/components/password-change/password-change.js b/client/components/password-change/password-change.js index 1ce38e8f..1972e6fb 100644 --- a/client/components/password-change/password-change.js +++ b/client/components/password-change/password-change.js @@ -100,10 +100,7 @@ export default class PasswordChange extends React.Component { render() { const {passwordChange, orgSlug, userData} = this.props; const {errors, newPassword1, newPassword2, hidePassword} = this.state; - if ( - userData && - (userData.method === "saml" || userData.method === "social_login") - ) + if (userData && ["saml", "social_login"].includes(userData.method)) return ; return (