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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.7.17",
2
+ "version": "1.7.18",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -929,9 +929,9 @@ const BillingInfoContainer = React.memo(
929
929
  )
930
930
 
931
931
  const onAddOnSelect = useCallback(
932
- (id: string, value: string, addon: any, fieldUpdates: Record<string, any> = {}) => {
932
+ (id: string, value: string, _addon: any, fieldUpdates: Record<string, any> = {}) => {
933
933
  const quantity = parseInt(value) || 0
934
- const addonId = addon.id || id
934
+ const addonId = id
935
935
 
936
936
  // Get current add-ons and their custom fields
937
937
  const currentAddOns = JSON.parse(localStorage.getItem('add_ons') || '{}')