Fix error update websocket to change user (#2744)

This commit is contained in:
Vladyslav 2020-05-07 11:27:29 +03:00 committed by GitHub
parent 9db9c36bb3
commit 7a87e6c16d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,10 +70,8 @@ export class TelemetryWebsocketService implements TelemetryService {
private ngZone: NgZone,
@Inject(WINDOW) private window: Window) {
this.store.pipe(select(selectIsAuthenticated)).subscribe(
(authenticated: boolean) => {
if (!authenticated) {
this.reset(true);
}
() => {
this.reset(true);
}
);