@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.
@@ -826,7 +826,7 @@ class API {
826
826
  return {
827
827
  clientName: "@seamly/web-ui",
828
828
  clientVariant: this.#layoutMode,
829
- clientVersion: "24.0.0-beta.3",
829
+ clientVersion: "23.0.6",
830
830
  currentUrl: window.location.toString(),
831
831
  screenResolution: `${window.screen.width}x${window.screen.height}`,
832
832
  timezone: (0,_utils__WEBPACK_IMPORTED_MODULE_10__.getTimeZone)(),
@@ -14257,7 +14257,8 @@ const useSeamlyChat = () => {
14257
14257
  (0,preact_hooks__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
14258
14258
  // This is needed to reset the ref to allow connect and start to happen again.
14259
14259
  // Mostly due to Interrupt situations and a reset being called.
14260
- if (!apiConfigReady || !apiConnected) {
14260
+ // Only do this in case both are `false` (reset does this), because the websocket itself will automatically try to reconnect.
14261
+ if (!apiConfigReady && !apiConnected) {
14261
14262
  connectCalled.current = false;
14262
14263
  }
14263
14264
  }, [apiConfigReady, apiConnected]);