@seamly/web-ui 24.0.0-beta.3 → 24.0.0-beta.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.
@@ -4287,7 +4287,7 @@ class API {
4287
4287
  return {
4288
4288
  clientName: "@seamly/web-ui",
4289
4289
  clientVariant: this.#layoutMode,
4290
- clientVersion: "24.0.0-beta.3",
4290
+ clientVersion: "23.0.6",
4291
4291
  currentUrl: window.location.toString(),
4292
4292
  screenResolution: `${window.screen.width}x${window.screen.height}`,
4293
4293
  timezone: getTimeZone(),
@@ -12932,7 +12932,8 @@ const useSeamlyChat = () => {
12932
12932
  (0,hooks_.useEffect)(() => {
12933
12933
  // This is needed to reset the ref to allow connect and start to happen again.
12934
12934
  // Mostly due to Interrupt situations and a reset being called.
12935
- if (!apiConfigReady || !apiConnected) {
12935
+ // Only do this in case both are `false` (reset does this), because the websocket itself will automatically try to reconnect.
12936
+ if (!apiConfigReady && !apiConnected) {
12936
12937
  connectCalled.current = false;
12937
12938
  }
12938
12939
  }, [apiConfigReady, apiConnected]);