tfw the linter finds bugs for you
This commit is contained in:
parent
9860baf0b4
commit
02f8b72533
2 changed files with 2 additions and 4 deletions
|
@ -52,7 +52,7 @@ export default class IdentityAuthClient {
|
|||
|
||||
_writeToken() {
|
||||
if (this.tempClient) return; // temporary client: ignore
|
||||
window.localStorage.setItem("mx_is_access_token", token);
|
||||
window.localStorage.setItem("mx_is_access_token", this.accessToken);
|
||||
}
|
||||
|
||||
_readToken() {
|
||||
|
|
|
@ -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,
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue