tf-checkout-react 1.6.6-beta.17 → 1.6.6-beta.18

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.
@@ -1709,7 +1709,7 @@ var getCustomFields = /*#__PURE__*/function () {
1709
1709
  while (1) switch (_context3.prev = _context3.next) {
1710
1710
  case 0:
1711
1711
  _context3.next = 2;
1712
- return publicRequest.get("/v1/event/" + eventId + "/fields");
1712
+ return publicRequest.get("/v1/event/" + eventId + "/custom_fields");
1713
1713
  case 2:
1714
1714
  response = _context3.sent;
1715
1715
  customFields = _get(response, 'data.data.attributes', []);
@@ -2530,7 +2530,7 @@ var CheckboxField = function CheckboxField(_ref) {
2530
2530
  error: hasError
2531
2531
  }, React__default.createElement(FormGroup, null, React__default.createElement(FormControlLabel, {
2532
2532
  control: React__default.createElement(Checkbox$1, Object.assign({}, field, {
2533
- checked: field.value
2533
+ checked: Boolean(field.value)
2534
2534
  })),
2535
2535
  label: label,
2536
2536
  componentsProps: {
@@ -5046,7 +5046,7 @@ var BillingInfoContainer = /*#__PURE__*/React__default.memo(function (_ref4) {
5046
5046
  initialValues: getInitialValues(dataWithUniqueIds, _extends({
5047
5047
  country: initialCountry,
5048
5048
  state: _get(userData, 'stateId', '') || '1',
5049
- brand_opt_in: optedInFieldValue,
5049
+ brand_opt_in: Boolean(optedInFieldValue),
5050
5050
  ttf_opt_in: ttfOptIn,
5051
5051
  data_capture: {
5052
5052
  instagram: _get(extraData, 'data_capture.instagram', ''),