1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-08 21:42:24 +03:00

tfw the linter finds bugs for you

This commit is contained in:
Travis Ralston
2019-08-15 16:08:18 -06:00
parent 9860baf0b4
commit 02f8b72533
2 changed files with 2 additions and 4 deletions

View File

@@ -144,8 +144,6 @@ export default class SetIdServer extends React.Component {
const fullUrl = unabbreviateUrl(this.state.idServer);
let errStr = await checkIdentityServerUrl(fullUrl);
let newFormValue = this.state.idServer;
if (!errStr) {
try {
this.setState({checking: false}); // clear tooltip
@@ -191,7 +189,7 @@ export default class SetIdServer extends React.Component {
checking: false,
error: errStr,
currentClientIdServer: MatrixClientPeg.get().getIdentityServerUrl(),
idServer: newFormValue,
idServer: this.state.idServer,
});
};