Merge pull request #3449 from matrix-org/jryans/picker-types-regression
Fix address type props to state conversion
This commit is contained in:
commit
b1618056c0
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ module.exports = createReactClass({
|
||||||
let validAddressTypes = this.props.validAddressTypes;
|
let validAddressTypes = this.props.validAddressTypes;
|
||||||
// Remove email from validAddressTypes if no IS is configured. It may be added at a later stage by the user
|
// Remove email from validAddressTypes if no IS is configured. It may be added at a later stage by the user
|
||||||
if (!MatrixClientPeg.get().getIdentityServerUrl() && validAddressTypes.includes("email")) {
|
if (!MatrixClientPeg.get().getIdentityServerUrl() && validAddressTypes.includes("email")) {
|
||||||
validAddressTypes = validAddressTypes.splice(validAddressTypes.indexOf("email"), 1);
|
validAddressTypes = validAddressTypes.filter(type => type !== "email");
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in a new issue