@bluemarble/bm-components 1.10.2 → 1.10.3

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.mjs CHANGED
@@ -5134,6 +5134,7 @@ function CreateAuthProvider({
5134
5134
  const { createAlert } = useAlert();
5135
5135
  const signIn = useCallback7(
5136
5136
  (_0) => __async(this, [_0], function* ({ email, password }) {
5137
+ var _a, _b;
5137
5138
  setStatus("loading");
5138
5139
  try {
5139
5140
  const response = yield api.post("/auth/login", {
@@ -5147,7 +5148,7 @@ function CreateAuthProvider({
5147
5148
  setStatus("autenticated");
5148
5149
  return true;
5149
5150
  } catch (error) {
5150
- createAlert(error.response.data.error, "error");
5151
+ createAlert((_b = (_a = error == null ? void 0 : error.response) == null ? void 0 : _a.data) == null ? void 0 : _b.error, "error");
5151
5152
  setStatus("unauthenticated");
5152
5153
  throw error;
5153
5154
  }