diff --git a/angular/src/directives/api-action.directive.ts b/angular/src/directives/api-action.directive.ts index ed119a3699..357cefb4ed 100644 --- a/angular/src/directives/api-action.directive.ts +++ b/angular/src/directives/api-action.directive.ts @@ -31,10 +31,7 @@ export class ApiActionDirective implements OnChanges { (e: any) => { this.el.nativeElement.loading = false; - if ( - (e instanceof ErrorResponse || e.constructor.name === ErrorResponse.name) && - (e as ErrorResponse).captchaRequired - ) { + if ((e as ErrorResponse).captchaRequired) { this.logService.error("Captcha required error response: " + e.getSingleMessage()); return; }