mirror of https://github.com/vector-im/riot-web
tfw the linter finds bugs for you
parent
9860baf0b4
commit
02f8b72533
|
@ -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 New Issue