From 1265996a4964f464048f7123c2e78f87e6c1de43 Mon Sep 17 00:00:00 2001 From: Thomas <4159106+dtslvr@users.noreply.github.com> Date: Sat, 15 Jul 2023 22:02:27 +0200 Subject: [PATCH] Improve http response interceptor Do not show snack bar for login endpoint --- apps/client/src/app/core/http-response.interceptor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/client/src/app/core/http-response.interceptor.ts b/apps/client/src/app/core/http-response.interceptor.ts index 84390b44c..b9f60eb65 100644 --- a/apps/client/src/app/core/http-response.interceptor.ts +++ b/apps/client/src/app/core/http-response.interceptor.ts @@ -62,7 +62,7 @@ export class HttpResponseInterceptor implements HttpInterceptor { undefined, { duration: 6000 } ); - } else { + } else if (!error.url.endsWith('auth/anonymous')) { this.snackBarRef = this.snackBar.open( $localize`This feature requires a subscription.`, this.hasPermissionForSubscription