diff --git a/web/src/auth/LoginPage.js b/web/src/auth/LoginPage.js index 2b79a69a..f91a330c 100644 --- a/web/src/auth/LoginPage.js +++ b/web/src/auth/LoginPage.js @@ -1179,11 +1179,13 @@ class LoginPage extends React.Component { {i18next.t("login:Continue with")} :
- { +
{ const values = {}; values["application"] = application.name; this.login(values); - }} /> + }}> + +


diff --git a/web/src/auth/SelfLoginButton.js b/web/src/auth/SelfLoginButton.js index 8f03b79f..c1ee1e37 100644 --- a/web/src/auth/SelfLoginButton.js +++ b/web/src/auth/SelfLoginButton.js @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -import React from "react"; +import React, {memo} from "react"; import {createButton} from "react-social-login-buttons"; class SelfLoginButton extends React.Component { @@ -44,4 +44,4 @@ class SelfLoginButton extends React.Component { } } -export default SelfLoginButton; +export default memo(SelfLoginButton);