Merge pull request #3449 from matrix-org/jryans/picker-types-regression

Fix address type props to state conversion
pull/21833/head
J. Ryan Stinnett 2019-09-17 15:44:41 +01:00 committed by GitHub
commit b1618056c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ module.exports = createReactClass({
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
if (!MatrixClientPeg.get().getIdentityServerUrl() && validAddressTypes.includes("email")) {
validAddressTypes = validAddressTypes.splice(validAddressTypes.indexOf("email"), 1);
validAddressTypes = validAddressTypes.filter(type => type !== "email");
}
return {