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
|
@@ -7602,12 +7602,12 @@ var BillingInfoContainer = /*#__PURE__*/React__default.memo(function (_ref6) {
|
|
|
7602
7602
|
return _ref14.apply(this, arguments);
|
|
7603
7603
|
};
|
|
7604
7604
|
}(), [updateCheckoutWithAddOns]);
|
|
7605
|
-
var onAddOnSelect = React.useCallback(function (id, value,
|
|
7605
|
+
var onAddOnSelect = React.useCallback(function (id, value, _addon, fieldUpdates) {
|
|
7606
7606
|
if (fieldUpdates === void 0) {
|
|
7607
7607
|
fieldUpdates = {};
|
|
7608
7608
|
}
|
|
7609
7609
|
var quantity = parseInt(value) || 0;
|
|
7610
|
-
var addonId =
|
|
7610
|
+
var addonId = id;
|
|
7611
7611
|
// Get current add-ons and their custom fields
|
|
7612
7612
|
var currentAddOns = JSON.parse(localStorage.getItem('add_ons') || '{}');
|
|
7613
7613
|
var currentDataCapture = JSON.parse(localStorage.getItem('add_on_data_capture') || '{}');
|