Switch to stable endpoint/fields for MSC2858

This commit is contained in:
Michael Telatynski 2021-06-01 11:01:09 +01:00
parent a8b6094482
commit f11a7083ae
4 changed files with 5 additions and 4 deletions

View file

@ -467,7 +467,7 @@ export default class Registration extends React.Component<IProps, IState> {
let ssoSection;
if (this.state.ssoFlow) {
let continueWithSection;
const providers = this.state.ssoFlow["org.matrix.msc2858.identity_providers"] || [];
const 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
if (providers.length > 1) {
// i18n: ssoButtons is a placeholder to help translators understand context