touchstudy-core 0.1.28 → 0.1.29

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
@@ -9918,8 +9918,9 @@ var useCreateQuestionDialog = function useCreateQuestionDialog() {
9918
9918
  })).then(function () {
9919
9919
  toggleDialog();
9920
9920
  });
9921
- }, function () {
9922
- reactToastify.toast.error("Fail to Create Question!");
9921
+ }, function (error) {
9922
+ var _error$response, _error$response$data;
9923
+ reactToastify.toast.error((error === null || error === void 0 ? void 0 : (_error$response = error.response) === null || _error$response === void 0 ? void 0 : (_error$response$data = _error$response.data) === null || _error$response$data === void 0 ? void 0 : _error$response$data.title) || "Fail to Create Question!");
9923
9924
  });
9924
9925
  return Promise.resolve(_temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp));
9925
9926
  } catch (e) {
@@ -10750,8 +10751,9 @@ var useCreateQuestionDialog$1 = function useCreateQuestionDialog() {
10750
10751
  })).then(function () {
10751
10752
  toggleDialog();
10752
10753
  });
10753
- }, function () {
10754
- reactToastify.toast.error("Fail to Create Question!");
10754
+ }, function (error) {
10755
+ var _error$response, _error$response$data;
10756
+ reactToastify.toast.error((error === null || error === void 0 ? void 0 : (_error$response = error.response) === null || _error$response === void 0 ? void 0 : (_error$response$data = _error$response.data) === null || _error$response$data === void 0 ? void 0 : _error$response$data.title) || "Fail to Create Question!");
10755
10757
  });
10756
10758
  return Promise.resolve(_temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp));
10757
10759
  } catch (e) {