diff --git a/res/css/views/elements/_SSOButtons.scss b/res/css/views/elements/_SSOButtons.scss
index add048efb09..e02816780ff 100644
--- a/res/css/views/elements/_SSOButtons.scss
+++ b/res/css/views/elements/_SSOButtons.scss
@@ -72,14 +72,3 @@ limitations under the License.
}
}
}
-
-.mx_SSOButton.mx_SSOButton_brand_facebook {
- background-color: #3c5a99;
- border-color: #3c5a99;
- color: #ffffff;
-}
-.mx_SSOButton.mx_SSOButton_brand_twitter {
- background-color: #47acdf;
- border-color: #47acdf;
- color: #ffffff;
-}
diff --git a/res/img/element-icons/brands/facebook.svg b/res/img/element-icons/brands/facebook.svg
index 087ddacdff2..27427854244 100644
--- a/res/img/element-icons/brands/facebook.svg
+++ b/res/img/element-icons/brands/facebook.svg
@@ -1,4 +1,9 @@
diff --git a/res/img/element-icons/brands/twitter.svg b/res/img/element-icons/brands/twitter.svg
index 4fc3d2f2a24..43eb825a598 100644
--- a/res/img/element-icons/brands/twitter.svg
+++ b/res/img/element-icons/brands/twitter.svg
@@ -1,3 +1,3 @@
diff --git a/src/components/structures/auth/Login.tsx b/src/components/structures/auth/Login.tsx
index 606aeb44ab2..a217f1b4d94 100644
--- a/src/components/structures/auth/Login.tsx
+++ b/src/components/structures/auth/Login.tsx
@@ -340,8 +340,8 @@ export default class LoginComponent extends React.PureComponent
};
onTryRegisterClick = ev => {
- const hasPasswordFlow = this.state.flows.find(flow => flow.type === "m.login.password");
- const ssoFlow = this.state.flows.find(flow => flow.type === "m.login.sso" || flow.type === "m.login.cas");
+ const hasPasswordFlow = this.state.flows?.find(flow => flow.type === "m.login.password");
+ const ssoFlow = this.state.flows?.find(flow => flow.type === "m.login.sso" || flow.type === "m.login.cas");
// If has no password flow but an SSO flow guess that the user wants to register with SSO.
// TODO: instead hide the Register button if registration is disabled by checking with the server,
// has no specific errCode currently and uses M_FORBIDDEN.