Fix websocket network change handling

This commit is contained in:
natsoni 2024-06-22 17:28:08 +09:00
parent a517c6c711
commit 1c1c93abfc
No known key found for this signature in database
GPG Key ID: C65917583181743B

View File

@ -72,7 +72,7 @@ export class WebsocketService {
}
this.stateService.networkChanged$.subscribe((network) => {
if (network === this.network || network === this.stateService.env.ROOT_NETWORK) {
if (network === this.network || (this.network === '' && network === this.stateService.env.ROOT_NETWORK)) {
return;
}
this.network = network === this.stateService.env.ROOT_NETWORK ? '' : network;