From 5aeecb08a180273b6e88ba52f53b07e1d3511638 Mon Sep 17 00:00:00 2001 From: piotrpekala7 <31202938+piotrpekala7@users.noreply.github.com> Date: Thu, 6 Aug 2020 23:52:01 +0200 Subject: [PATCH] Update toaster-error-handler.ts --- src/app/common/error-handlers/toaster-error-handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/common/error-handlers/toaster-error-handler.ts b/src/app/common/error-handlers/toaster-error-handler.ts index 3edb1e4f..2e78cef2 100644 --- a/src/app/common/error-handlers/toaster-error-handler.ts +++ b/src/app/common/error-handlers/toaster-error-handler.ts @@ -5,7 +5,7 @@ import { SentryErrorHandler } from './sentry-error-handler'; @Injectable() export class ToasterErrorHandler extends SentryErrorHandler { handleError(err: any): void { - if (err.error && err.error.status && err.error.status === 403) {} else { + if (err.error && err.error.status && !(err.error.status === 403)) { super.handleError(err); }