yusuketk 6 years ago
parent
commit
7e8fdc2ed8
1 changed files with 2 additions and 3 deletions
  1. 2 3
      src/client/js/components/LoginForm.jsx

+ 2 - 3
src/client/js/components/LoginForm.jsx

@@ -103,11 +103,10 @@ class LoginForm extends React.Component {
           <div className="spacer"></div>
           <div className="d-flex flex-row justify-content-between flex-wrap">
             {isExternalAuthEnabledMap.keys().map((auth) => {
-              if (isExternalAuthEnabledMap(auth)) {
-                return this.renderExternalAuthInput(auth);
-              } else {
+              if (!isExternalAuthEnabledMap(auth)) {
                 return;
               }
+              return this.renderExternalAuthInput(auth);
             })}
           </div>
           <div className="spacer"></div>