@sawport/react-sdk 0.1.0-alpha.78 → 0.1.0-alpha.79

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/dist/index.js CHANGED
@@ -70279,6 +70279,8 @@ const SlotPicker = reactExports.memo(({
70279
70279
  const disabledTime = reactExports.useCallback(() => ({
70280
70280
  disabledHours: () => {
70281
70281
  var _a, _b, _c, _d;
70282
+ if (!date4)
70283
+ return [];
70282
70284
  const times = [];
70283
70285
  const timeformat = "HH:mm";
70284
70286
  const currentDay = hooks.tz(date4, timezone2).format("dddd");
@@ -77762,7 +77764,8 @@ const WidgetFormDisplay = reactExports.memo(({
77762
77764
  }
77763
77765
  };
77764
77766
  reactExports.useEffect(() => {
77765
- getWaitingCustomers();
77767
+ var _a2, _b2;
77768
+ ((_b2 = (_a2 = dataRef.current) == null ? void 0 : _a2.wait) == null ? void 0 : _b2.id) && getWaitingCustomers();
77766
77769
  }, [customer, (_c = (_b = dataRef.current) == null ? void 0 : _b.wait) == null ? void 0 : _c.id]);
77767
77770
  const quickStopChat = reactExports.useCallback((extraState = {}) => {
77768
77771
  var _a2, _b2, _c2, _d2;