Skip to content

Commit

Permalink
Fix price calculation when using multiple addons
Browse files Browse the repository at this point in the history
  • Loading branch information
douglaslise committed Feb 24, 2023
1 parent 6e8fab7 commit dd205ed
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/recurly/pricing/subscription/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,7 @@ export default class SubscriptionPricing extends Pricing {

if (quantity === 0) {
this.remove({ addons: addonCode });
}

if (addon) {
} else if (addon) {
addon.quantity = quantity;
} else {
addon = JSON.parse(JSON.stringify(planAddon));
Expand Down

0 comments on commit dd205ed

Please sign in to comment.