From ca40d4cc4a7c955554c1ebd9bad1b9a9b644916c Mon Sep 17 00:00:00 2001 From: Art Date: Fri, 17 Sep 2021 21:12:58 +0300 Subject: [PATCH] 143. Login component - Unsubscribe (#18) --- .../src/app/component/login/login.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/support-portal-frontend/src/app/component/login/login.component.ts b/support-portal-frontend/src/app/component/login/login.component.ts index 11120bb..15b7777 100644 --- a/support-portal-frontend/src/app/component/login/login.component.ts +++ b/support-portal-frontend/src/app/component/login/login.component.ts @@ -58,6 +58,7 @@ export class LoginComponent implements OnInit, OnDestroy { } ngOnDestroy(): void { + this.subscriptions.forEach(sub => sub.unsubscribe()); } private sendErrorNotification(message: string) {