You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-08-07 21:23:00 +03:00
fix tests
This commit is contained in:
@@ -462,8 +462,7 @@ export default class Registration extends React.Component<IProps, IState> {
|
|||||||
let ssoSection;
|
let ssoSection;
|
||||||
if (this.state.ssoFlow) {
|
if (this.state.ssoFlow) {
|
||||||
let continueWithSection;
|
let continueWithSection;
|
||||||
const providers = this.state.ssoFlow["org.matrix.msc2858.identity_providers"]
|
const providers = this.state.ssoFlow["org.matrix.msc2858.identity_providers"] || [];
|
||||||
|| this.state.ssoFlow["identity_providers"] || [];
|
|
||||||
// when there is only a single (or 0) providers we show a wide button with `Continue with X` text
|
// when there is only a single (or 0) providers we show a wide button with `Continue with X` text
|
||||||
if (providers.length > 1) {
|
if (providers.length > 1) {
|
||||||
// i18n: ssoButtons is a placeholder to help translators understand context
|
// i18n: ssoButtons is a placeholder to help translators understand context
|
||||||
|
@@ -133,7 +133,7 @@ describe('Login', function() {
|
|||||||
root.setState({
|
root.setState({
|
||||||
flows: [{
|
flows: [{
|
||||||
type: "m.login.sso",
|
type: "m.login.sso",
|
||||||
identity_providers: [{
|
"org.matrix.msc2858.identity_providers": [{
|
||||||
id: "a",
|
id: "a",
|
||||||
name: "Provider 1",
|
name: "Provider 1",
|
||||||
}, {
|
}, {
|
||||||
|
Reference in New Issue
Block a user