143. Login component - Unsubscribe (#18)

This commit is contained in:
Art
2021-09-17 21:12:58 +03:00
parent 13b6537c9c
commit ca40d4cc4a

View File

@ -58,6 +58,7 @@ export class LoginComponent implements OnInit, OnDestroy {
} }
ngOnDestroy(): void { ngOnDestroy(): void {
this.subscriptions.forEach(sub => sub.unsubscribe());
} }
private sendErrorNotification(message: string) { private sendErrorNotification(message: string) {