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.cjs CHANGED
@@ -2577,9 +2577,8 @@ function _catch$7(body, recover) {
2577
2577
  var ForgetUserPasswordAction = function ForgetUserPasswordAction(props) {
2578
2578
  var execute = function execute() {
2579
2579
  try {
2580
- return Promise.resolve(_catch$7(function () {
2580
+ var _temp = _catch$7(function () {
2581
2581
  var email = user.email;
2582
- if (!email) throw new Error("Email not found");
2583
2582
  return Promise.resolve(onOK(email)).then(function () {
2584
2583
  if (onSuccess) onSuccess();
2585
2584
  site.notify({
@@ -2595,7 +2594,8 @@ var ForgetUserPasswordAction = function ForgetUserPasswordAction(props) {
2595
2594
  type: "danger",
2596
2595
  icon: "error"
2597
2596
  });
2598
- }));
2597
+ });
2598
+ return Promise.resolve(_temp && _temp.then ? _temp.then(function () {}) : void 0);
2599
2599
  } catch (e) {
2600
2600
  return Promise.reject(e);
2601
2601
  }
@@ -2627,7 +2627,7 @@ var ForgetUserPasswordAction = function ForgetUserPasswordAction(props) {
2627
2627
  var UnlockUserAction = function UnlockUserAction(props) {
2628
2628
  var execute = function execute() {
2629
2629
  try {
2630
- var _temp = _catch$7(function () {
2630
+ var _temp2 = _catch$7(function () {
2631
2631
  return Promise.resolve(onOK(user)).then(function () {
2632
2632
  if (onSuccess) onSuccess();
2633
2633
  site.notify({
@@ -2644,7 +2644,7 @@ var UnlockUserAction = function UnlockUserAction(props) {
2644
2644
  icon: "error"
2645
2645
  });
2646
2646
  });
2647
- return Promise.resolve(_temp && _temp.then ? _temp.then(function () {}) : void 0);
2647
+ return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
2648
2648
  } catch (e) {
2649
2649
  return Promise.reject(e);
2650
2650
  }
@@ -2694,7 +2694,7 @@ var ChangeUserPasswordAction = function ChangeUserPasswordAction(props) {
2694
2694
  function execute() {
2695
2695
  var onOK = function onOK(form) {
2696
2696
  try {
2697
- var _temp2 = _catch$7(function () {
2697
+ var _temp3 = _catch$7(function () {
2698
2698
  return Promise.resolve(props.onOK(user, form.oldPassword, form.password1)).then(function () {
2699
2699
  site.notify({
2700
2700
  title: /*#__PURE__*/React__default["default"].createElement(Text$1, null, "Change Password"),
@@ -2719,7 +2719,7 @@ var ChangeUserPasswordAction = function ChangeUserPasswordAction(props) {
2719
2719
  error: message
2720
2720
  }));
2721
2721
  });
2722
- return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
2722
+ return Promise.resolve(_temp3 && _temp3.then ? _temp3.then(function () {}) : void 0);
2723
2723
  } catch (e) {
2724
2724
  return Promise.reject(e);
2725
2725
  }