#78 fixed a smell

This commit is contained in:
Fabio Formosa
2022-11-08 22:34:50 +01:00
parent 9dfe06e346
commit b62455836a
6 changed files with 21 additions and 34 deletions

View File

@@ -21,7 +21,7 @@ export class UserService {
refreshToken() {
this.apiService.get(this.config.refresh_token_url).subscribe(res => {
if (res.access_token !== null) {
if (res.accessToken !== null) {
return this.getUserInfo().toPromise()
.then(user => {
this.currentUser = user;