mario-core 2.9.67-beta → 2.9.68-beta

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.
@@ -1303,7 +1303,7 @@ var use_for$1 = "Use for";
1303
1303
  var admin_training$1 = "Admin training";
1304
1304
  var teacher_training$1 = "Teacher training";
1305
1305
  var created_time$1 = "Create time";
1306
- var total_reflections$1 = "Total Reflections:";
1306
+ var total_reflections$1 = "Total Reflections";
1307
1307
  var student_training$1 = "Student training";
1308
1308
  var create_destination$1 = "Create Destination";
1309
1309
  var total_of_designation$1 = "Total of Designation";
@@ -10424,13 +10424,7 @@ var useUserList = function useUserList() {
10424
10424
 
10425
10425
  var swicthUser = useCallback(function (id) {
10426
10426
  try {
10427
- var _temp7 = function _temp7() {
10428
- dispatch(setLoading(false));
10429
- };
10430
-
10431
- dispatch(setLoading(true));
10432
-
10433
- var _temp8 = _catch(function () {
10427
+ var _temp6 = _catch(function () {
10434
10428
  return Promise.resolve(switchAccountUser(id)).then(function (res) {
10435
10429
  var data = res.data;
10436
10430
  dispatch(setModal({
@@ -10439,13 +10433,13 @@ var useUserList = function useUserList() {
10439
10433
  message: "Do you want to impersonate this user?",
10440
10434
  onConfirm: function () {
10441
10435
  try {
10442
- var _temp11 = function _temp11() {
10436
+ var _temp9 = function _temp9() {
10443
10437
  dispatch(setLoading(false));
10444
10438
  };
10445
10439
 
10446
10440
  dispatch(setLoading(true));
10447
10441
 
10448
- var _temp12 = _catch(function () {
10442
+ var _temp10 = _catch(function () {
10449
10443
  var req = {
10450
10444
  email: data.email,
10451
10445
  password: "default",
@@ -10464,7 +10458,7 @@ var useUserList = function useUserList() {
10464
10458
  });
10465
10459
  });
10466
10460
 
10467
- return Promise.resolve(_temp12 && _temp12.then ? _temp12.then(_temp11) : _temp11(_temp12));
10461
+ return Promise.resolve(_temp10 && _temp10.then ? _temp10.then(_temp9) : _temp9(_temp10));
10468
10462
  } catch (e) {
10469
10463
  return Promise.reject(e);
10470
10464
  }
@@ -10480,7 +10474,7 @@ var useUserList = function useUserList() {
10480
10474
  }));
10481
10475
  });
10482
10476
 
10483
- return Promise.resolve(_temp8 && _temp8.then ? _temp8.then(_temp7) : _temp7(_temp8));
10477
+ return Promise.resolve(_temp6 && _temp6.then ? _temp6.then(function () {}) : void 0);
10484
10478
  } catch (e) {
10485
10479
  return Promise.reject(e);
10486
10480
  }