diff --git a/frontend/src/ts/modules/security/guard/auth.guard.ts b/frontend/src/ts/modules/security/guard/auth.guard.ts index 7beccddb..be72a006 100644 --- a/frontend/src/ts/modules/security/guard/auth.guard.ts +++ b/frontend/src/ts/modules/security/guard/auth.guard.ts @@ -61,7 +61,6 @@ export abstract class AuthGuard implements CanActivate { return false; } if (code && state) { - this.progressIndicationService.showProgressBar(); const params = new HttpParams().set('code', code).set('state', state); this.httpClient.get("esia/auth", { @@ -75,7 +74,6 @@ export abstract class AuthGuard implements CanActivate { .toPromise() .then( () => { - this.progressIndicationService.hideProgressBar(); window.open(url.origin + url.pathname, "_self"); }) .catch(reason => { @@ -83,8 +81,7 @@ export abstract class AuthGuard implements CanActivate { json.messages.forEach((errorMessage) => { this.messageService.error(errorMessage, json); }) - }) - .finally(() => this.progressIndicationService.hideProgressBar()); + }); return false; } else {