@saasquatch/mint-components 2.0.8-2 → 2.0.8-4

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.
@@ -3373,10 +3373,13 @@ function useDemoPayoutStatusAlert(props) {
3373
3373
  const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-payout-status-alert"
3374
3374
  ? { ...prev, ...states[key] }
3375
3375
  : { ...prev, [`${key}_stateController`]: states[key] }, {});
3376
+ const status = states.status ? states.status : (_b = (_a = props.demoData) === null || _a === void 0 ? void 0 : _a.states) === null || _b === void 0 ? void 0 : _b.status;
3377
+ console.log("the value of the status variable is", status);
3378
+ console.log("the value of states.status is ", states.status);
3376
3379
  return cjs.cjs({
3377
3380
  states: {
3378
3381
  error: props.demoData.states.error || false,
3379
- status: (_a = states.status) !== null && _a !== void 0 ? _a : (_b = props.demoData.states) === null || _b === void 0 ? void 0 : _b.status,
3382
+ status: states.status,
3380
3383
  loading: props.demoData.states.loading || false,
3381
3384
  veriffLoading: props.demoData.states.veriffLoading || false,
3382
3385
  },
@@ -1059,10 +1059,13 @@ function useDemoPayoutStatusAlert(props) {
1059
1059
  const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-payout-status-alert"
1060
1060
  ? { ...prev, ...states[key] }
1061
1061
  : { ...prev, [`${key}_stateController`]: states[key] }, {});
1062
+ const status = states.status ? states.status : (_b = (_a = props.demoData) === null || _a === void 0 ? void 0 : _a.states) === null || _b === void 0 ? void 0 : _b.status;
1063
+ console.log("the value of the status variable is", status);
1064
+ console.log("the value of states.status is ", states.status);
1062
1065
  return deepmerge({
1063
1066
  states: {
1064
1067
  error: props.demoData.states.error || false,
1065
- status: (_a = states.status) !== null && _a !== void 0 ? _a : (_b = props.demoData.states) === null || _b === void 0 ? void 0 : _b.status,
1068
+ status: states.status,
1066
1069
  loading: props.demoData.states.loading || false,
1067
1070
  veriffLoading: props.demoData.states.veriffLoading || false,
1068
1071
  },
@@ -3369,10 +3369,13 @@ function useDemoPayoutStatusAlert(props) {
3369
3369
  const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-payout-status-alert"
3370
3370
  ? { ...prev, ...states[key] }
3371
3371
  : { ...prev, [`${key}_stateController`]: states[key] }, {});
3372
+ const status = states.status ? states.status : (_b = (_a = props.demoData) === null || _a === void 0 ? void 0 : _a.states) === null || _b === void 0 ? void 0 : _b.status;
3373
+ console.log("the value of the status variable is", status);
3374
+ console.log("the value of states.status is ", states.status);
3372
3375
  return cjs({
3373
3376
  states: {
3374
3377
  error: props.demoData.states.error || false,
3375
- status: (_a = states.status) !== null && _a !== void 0 ? _a : (_b = props.demoData.states) === null || _b === void 0 ? void 0 : _b.status,
3378
+ status: states.status,
3376
3379
  loading: props.demoData.states.loading || false,
3377
3380
  veriffLoading: props.demoData.states.veriffLoading || false,
3378
3381
  },