@saasquatch/mint-components 1.14.6-10 → 1.14.6-11

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.
@@ -1329,7 +1329,7 @@ function useLeadForm(props) {
1329
1329
  };
1330
1330
  }, [formRef.current]);
1331
1331
  const submit = async (event) => {
1332
- var _a, _b, _c;
1332
+ var _a;
1333
1333
  let formControls = event.target.getFormControls();
1334
1334
  let formData = {};
1335
1335
  let validationErrors = {};
@@ -1368,11 +1368,6 @@ function useLeadForm(props) {
1368
1368
  };
1369
1369
  try {
1370
1370
  const result = await submitLead({ formSubmissionInput: variables });
1371
- console.log({
1372
- result,
1373
- success: (_a = result === null || result === void 0 ? void 0 : result.submitForm) === null || _a === void 0 ? void 0 : _a.success,
1374
- isError: result instanceof Error,
1375
- });
1376
1371
  if (result instanceof Error) {
1377
1372
  throw result;
1378
1373
  }
@@ -1381,12 +1376,11 @@ function useLeadForm(props) {
1381
1376
  error: "",
1382
1377
  validationErrors: {},
1383
1378
  });
1384
- if ((_c = (_b = result === null || result === void 0 ? void 0 : result.data) === null || _b === void 0 ? void 0 : _b.submitForm) === null || _c === void 0 ? void 0 : _c.success) {
1379
+ if ((_a = result === null || result === void 0 ? void 0 : result.submitForm) === null || _a === void 0 ? void 0 : _a.success) {
1385
1380
  setSuccess(true);
1386
1381
  }
1387
1382
  }
1388
1383
  catch (error) {
1389
- console.log({ error });
1390
1384
  setLeadFormState({
1391
1385
  loading: false,
1392
1386
  error: props.networkErrorMessage,
@@ -40,7 +40,7 @@ export function useLeadForm(props) {
40
40
  };
41
41
  }, [formRef.current]);
42
42
  const submit = async (event) => {
43
- var _a, _b, _c;
43
+ var _a;
44
44
  let formControls = event.target.getFormControls();
45
45
  let formData = {};
46
46
  let validationErrors = {};
@@ -79,11 +79,6 @@ export function useLeadForm(props) {
79
79
  };
80
80
  try {
81
81
  const result = await submitLead({ formSubmissionInput: variables });
82
- console.log({
83
- result,
84
- success: (_a = result === null || result === void 0 ? void 0 : result.submitForm) === null || _a === void 0 ? void 0 : _a.success,
85
- isError: result instanceof Error,
86
- });
87
82
  if (result instanceof Error) {
88
83
  throw result;
89
84
  }
@@ -92,12 +87,11 @@ export function useLeadForm(props) {
92
87
  error: "",
93
88
  validationErrors: {},
94
89
  });
95
- if ((_c = (_b = result === null || result === void 0 ? void 0 : result.data) === null || _b === void 0 ? void 0 : _b.submitForm) === null || _c === void 0 ? void 0 : _c.success) {
90
+ if ((_a = result === null || result === void 0 ? void 0 : result.submitForm) === null || _a === void 0 ? void 0 : _a.success) {
96
91
  setSuccess(true);
97
92
  }
98
93
  }
99
94
  catch (error) {
100
- console.log({ error });
101
95
  setLeadFormState({
102
96
  loading: false,
103
97
  error: props.networkErrorMessage,
@@ -1325,7 +1325,7 @@ function useLeadForm(props) {
1325
1325
  };
1326
1326
  }, [formRef.current]);
1327
1327
  const submit = async (event) => {
1328
- var _a, _b, _c;
1328
+ var _a;
1329
1329
  let formControls = event.target.getFormControls();
1330
1330
  let formData = {};
1331
1331
  let validationErrors = {};
@@ -1364,11 +1364,6 @@ function useLeadForm(props) {
1364
1364
  };
1365
1365
  try {
1366
1366
  const result = await submitLead({ formSubmissionInput: variables });
1367
- console.log({
1368
- result,
1369
- success: (_a = result === null || result === void 0 ? void 0 : result.submitForm) === null || _a === void 0 ? void 0 : _a.success,
1370
- isError: result instanceof Error,
1371
- });
1372
1367
  if (result instanceof Error) {
1373
1368
  throw result;
1374
1369
  }
@@ -1377,12 +1372,11 @@ function useLeadForm(props) {
1377
1372
  error: "",
1378
1373
  validationErrors: {},
1379
1374
  });
1380
- if ((_c = (_b = result === null || result === void 0 ? void 0 : result.data) === null || _b === void 0 ? void 0 : _b.submitForm) === null || _c === void 0 ? void 0 : _c.success) {
1375
+ if ((_a = result === null || result === void 0 ? void 0 : result.submitForm) === null || _a === void 0 ? void 0 : _a.success) {
1381
1376
  setSuccess(true);
1382
1377
  }
1383
1378
  }
1384
1379
  catch (error) {
1385
- console.log({ error });
1386
1380
  setLeadFormState({
1387
1381
  loading: false,
1388
1382
  error: props.networkErrorMessage,