@reactoo/watchtogether-sdk-js 2.7.26 → 2.7.30

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reactoo/watchtogether-sdk-js",
3
- "version": "2.7.26",
3
+ "version": "2.7.30",
4
4
  "description": "Javascript SDK for Reactoo",
5
5
  "main": "src/index.js",
6
6
  "unpkg": "dist/watchtogether-sdk.min.js",
@@ -284,7 +284,7 @@ class Iot {
284
284
  }
285
285
 
286
286
  // Find a suitable topic for the connection check
287
- const suitableTopic = Array.from(this.subscribedTopics).find(topic => topic.indexOf('user') === -1);
287
+ const suitableTopic = Array.from(this.subscribedTopics).find(topic => topic.indexOf('user') > -1);
288
288
 
289
289
  if (!suitableTopic) {
290
290
  reject(new Error('No suitable topic found for connection check'));