From 6728e04ff73db707e71e89119c03f31bca2c3973 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sat, 15 Jul 2023 22:17:07 +0200 Subject: [PATCH] Improve http response interceptor (#2157) 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