diff --git a/webapp/src/client/app/modules/login/login.component.ts b/webapp/src/client/app/modules/login/login.component.ts index 7fb2cfd72..84c09f4bf 100644 --- a/webapp/src/client/app/modules/login/login.component.ts +++ b/webapp/src/client/app/modules/login/login.component.ts @@ -1,3 +1,4 @@ +import { HttpErrorResponse } from '@angular/common/http'; import { Component, OnInit } from '@angular/core'; import { FormControl, FormGroup, Validators } from '@angular/forms'; @@ -76,8 +77,8 @@ export class LoginComponent extends BaseComponent implements OnInit { } } - private handleAutoLoginError(error): Observable { - if (error.status && error.status !== '401') { + private handleAutoLoginError(error: HttpErrorResponse): Observable { + if (error?.status !== 401) { console.error('Auto login:', error); this.addMessages([ {