saasufy-components 7.7.4 → 7.7.5

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/socket.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saasufy-components",
3
- "version": "7.7.4",
3
+ "version": "7.7.5",
4
4
  "description": "Components for Saasufy.",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/socket.js CHANGED
@@ -131,8 +131,8 @@ export class SocketProvider extends HTMLElement {
131
131
  } else {
132
132
  this.saasufySocket.reconnect(1000, 'log-out');
133
133
  }
134
- } else {
135
- this.saasufySocket.reconnect(1000, 'log-out');
134
+ } else if (this.saasufySocket.authState === 'unauthenticated') {
135
+ this.saasufySocket.reconnect(1000, 'log-in');
136
136
  }
137
137
  }
138
138
  };