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.
- package/dist/tf-checkout-react.cjs.development.js +2 -2
- package/dist/tf-checkout-react.cjs.development.js.map +1 -1
- package/dist/tf-checkout-react.cjs.production.min.js +1 -1
- package/dist/tf-checkout-react.cjs.production.min.js.map +1 -1
- package/dist/tf-checkout-react.esm.js +2 -2
- package/dist/tf-checkout-react.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/billing-info-container/index.tsx +2 -2
|
@@ -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,
|
|
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 =
|
|
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') || '{}');
|