ywana-core8 0.1.34 → 0.1.35

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.umd.js CHANGED
@@ -2570,9 +2570,8 @@
2570
2570
  var ForgetUserPasswordAction = function ForgetUserPasswordAction(props) {
2571
2571
  var execute = function execute() {
2572
2572
  try {
2573
- return Promise.resolve(_catch$7(function () {
2573
+ var _temp = _catch$7(function () {
2574
2574
  var email = user.email;
2575
- if (!email) throw new Error("Email not found");
2576
2575
  return Promise.resolve(onOK(email)).then(function () {
2577
2576
  if (onSuccess) onSuccess();
2578
2577
  site.notify({
@@ -2588,7 +2587,8 @@
2588
2587
  type: "danger",
2589
2588
  icon: "error"
2590
2589
  });
2591
- }));
2590
+ });
2591
+ return Promise.resolve(_temp && _temp.then ? _temp.then(function () {}) : void 0);
2592
2592
  } catch (e) {
2593
2593
  return Promise.reject(e);
2594
2594
  }
@@ -2620,7 +2620,7 @@
2620
2620
  var UnlockUserAction = function UnlockUserAction(props) {
2621
2621
  var execute = function execute() {
2622
2622
  try {
2623
- var _temp = _catch$7(function () {
2623
+ var _temp2 = _catch$7(function () {
2624
2624
  return Promise.resolve(onOK(user)).then(function () {
2625
2625
  if (onSuccess) onSuccess();
2626
2626
  site.notify({
@@ -2637,7 +2637,7 @@
2637
2637
  icon: "error"
2638
2638
  });
2639
2639
  });
2640
- return Promise.resolve(_temp && _temp.then ? _temp.then(function () {}) : void 0);
2640
+ return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
2641
2641
  } catch (e) {
2642
2642
  return Promise.reject(e);
2643
2643
  }
@@ -2687,7 +2687,7 @@
2687
2687
  function execute() {
2688
2688
  var onOK = function onOK(form) {
2689
2689
  try {
2690
- var _temp2 = _catch$7(function () {
2690
+ var _temp3 = _catch$7(function () {
2691
2691
  return Promise.resolve(props.onOK(user, form.oldPassword, form.password1)).then(function () {
2692
2692
  site.notify({
2693
2693
  title: /*#__PURE__*/React__default["default"].createElement(Text$1, null, "Change Password"),
@@ -2712,7 +2712,7 @@
2712
2712
  error: message
2713
2713
  }));
2714
2714
  });
2715
- return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
2715
+ return Promise.resolve(_temp3 && _temp3.then ? _temp3.then(function () {}) : void 0);
2716
2716
  } catch (e) {
2717
2717
  return Promise.reject(e);
2718
2718
  }