From cfec3566d2c06baab9f8417ef8c207cc27ed5e7b Mon Sep 17 00:00:00 2001 From: Christopher Rogers Date: Mon, 15 Jul 2024 20:25:04 -0700 Subject: [PATCH] Experimental debugging --- lib/use-checkout-pricing.js | 2 ++ package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/use-checkout-pricing.js b/lib/use-checkout-pricing.js index 406e6a6..2a93698 100644 --- a/lib/use-checkout-pricing.js +++ b/lib/use-checkout-pricing.js @@ -102,6 +102,7 @@ export default function useCheckoutPricing (initialInputs, handleError = throwEr subscriptionPricing = subscriptionPricing.currency(restInputs.currency); } + console.log('assigning subscription plan', { plan, quantity }); subscriptionPricing = subscriptionPricing.plan(plan, { quantity }); if (addons.length) { @@ -128,6 +129,7 @@ export default function useCheckoutPricing (initialInputs, handleError = throwEr function addAddons(addons = [], subscriptionPricing) { return addons .reduce((subscriptionPricing, { code, quantity }) => { + console.log('assigning subscription addon', { code, quantity }); return subscriptionPricing.addon(code, { quantity }); }, subscriptionPricing) .catch(handleError); diff --git a/package.json b/package.json index 84fe535..639fb2b 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@recurly/react-recurly", "version": "2.0.1", "description": "React components for Recurly.js", - "main": "lib-dist/index.js", + "main": "lib/index.js", "types": "types/index.d.ts", "repository": { "type": "git",