@stacks/blockchain-api-client 8.3.0-beta.1 → 8.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -72,7 +72,7 @@ export class StacksApiSocketClient {
72
72
 
73
73
  handleSubscription(topic: Topic, subscribe = false, listener?: (...args: any[]) => void) {
74
74
  const subsQuery = this.socket.io.opts.query?.subscriptions as string | undefined;
75
- const subscriptions = new Set(subsQuery?.split(',') ?? []);
75
+ const subscriptions = new Set(subsQuery ? subsQuery.split(',') : []);
76
76
  if (subscribe) {
77
77
  this.socket.emit('subscribe', topic, error => {
78
78
  if (error) console.error(`Error subscribing: ${error}`);