@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.
@@ -4336,7 +4336,7 @@ class API {
4336
4336
  return {
4337
4337
  clientName: "@seamly/web-ui",
4338
4338
  clientVariant: this.#layoutMode,
4339
- clientVersion: "24.0.0-beta.3",
4339
+ clientVersion: "23.0.6",
4340
4340
  currentUrl: window.location.toString(),
4341
4341
  screenResolution: `${window.screen.width}x${window.screen.height}`,
4342
4342
  timezone: getTimeZone(),
@@ -12981,7 +12981,8 @@ const useSeamlyChat = () => {
12981
12981
  (0,hooks_module/* useEffect */.vJ)(() => {
12982
12982
  // This is needed to reset the ref to allow connect and start to happen again.
12983
12983
  // Mostly due to Interrupt situations and a reset being called.
12984
- if (!apiConfigReady || !apiConnected) {
12984
+ // Only do this in case both are `false` (reset does this), because the websocket itself will automatically try to reconnect.
12985
+ if (!apiConfigReady && !apiConnected) {
12985
12986
  connectCalled.current = false;
12986
12987
  }
12987
12988
  }, [apiConfigReady, apiConnected]);