mario-core 2.9.186-release → 2.9.187-release

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.
@@ -23294,9 +23294,11 @@ var useCreatePassword = function useCreatePassword() {
23294
23294
  }));
23295
23295
  });
23296
23296
  }, function (err) {
23297
+ var _err$response, _err$response$data;
23298
+
23297
23299
  dispatch(setAlert({
23298
23300
  type: "danger",
23299
- message: err.message
23301
+ message: ((_err$response = err.response) === null || _err$response === void 0 ? void 0 : (_err$response$data = _err$response.data) === null || _err$response$data === void 0 ? void 0 : _err$response$data.title) || err.message || "Error occured"
23300
23302
  }));
23301
23303
  localStorage.removeItem(ACCESS_TOKEN);
23302
23304
  });