Fix identity server text in AddressPickerDialog

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2019-09-09 13:53:56 +01:00
parent 1422b1d73e
commit 194cd0a460

View File

@ -678,7 +678,7 @@ module.exports = createReactClass({
}
let identityServer;
if (this.props.pickerType === 'user' && !this.state.validAddressTypes.includes('email')) {
if (this.props.pickerType === 'user' && this.props.validAddressTypes.includes('email')) {
const defaultIdentityServerUrl = getDefaultIdentityServerUrl();
if (defaultIdentityServerUrl) {
identityServer = <div className="mx_AddressPickerDialog_identityServer">{_t(