Fix rogue instance of old hsUrl property

This commit is contained in:
Travis Ralston 2019-05-02 23:59:54 -06:00
parent ae63df95ea
commit 4ada66d319

View file

@ -212,7 +212,7 @@ export default class PasswordLogin extends React.Component {
type="text"
label={SdkConfig.get().disable_custom_urls ?
_t("Username on %(hs)s", {
hs: this.props.hsUrl.replace(/^https?:\/\//, ''),
hs: this.props.serverConfig.hsName,
}) : _t("Username")}
value={this.state.username}
onChange={this.onUsernameChanged}