tf-checkout-react 1.7.17 → 1.7.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.
@@ -7595,12 +7595,12 @@ var BillingInfoContainer = /*#__PURE__*/React.memo(function (_ref6) {
7595
7595
  return _ref14.apply(this, arguments);
7596
7596
  };
7597
7597
  }(), [updateCheckoutWithAddOns]);
7598
- var onAddOnSelect = useCallback(function (id, value, addon, fieldUpdates) {
7598
+ var onAddOnSelect = useCallback(function (id, value, _addon, fieldUpdates) {
7599
7599
  if (fieldUpdates === void 0) {
7600
7600
  fieldUpdates = {};
7601
7601
  }
7602
7602
  var quantity = parseInt(value) || 0;
7603
- var addonId = addon.id || id;
7603
+ var addonId = id;
7604
7604
  // Get current add-ons and their custom fields
7605
7605
  var currentAddOns = JSON.parse(localStorage.getItem('add_ons') || '{}');
7606
7606
  var currentDataCapture = JSON.parse(localStorage.getItem('add_on_data_capture') || '{}');