From 4ada66d3195052a0617f5c49d4512d764da961cc Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Thu, 2 May 2019 23:59:54 -0600 Subject: [PATCH] Fix rogue instance of old hsUrl property --- src/components/views/auth/PasswordLogin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/auth/PasswordLogin.js b/src/components/views/auth/PasswordLogin.js index 90c607442f..f5b2aec210 100644 --- a/src/components/views/auth/PasswordLogin.js +++ b/src/components/views/auth/PasswordLogin.js @@ -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}