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

@ -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() {

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,
});
};