Skip to content

Commit

Permalink
Do not automatically add products to the default group
Browse files Browse the repository at this point in the history
This has unintended side effects, in particular trying to replace a
non-consumable with a subscription (which fails).
  • Loading branch information
j3k0 committed Jun 15, 2023
1 parent 635ae15 commit 6ac45ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ts/product.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ namespace CdvPurchase {
this.platform = p.platform;
this.type = p.type;
this.id = p.id;
this.group = p.group || 'default';
this.group = p.group;
this.offers = [];
Object.defineProperty(this, 'pricing', { enumerable: false, get: () => this.offers[0]?.pricingPhases[0] });
Object.defineProperty(this, 'canPurchase', { enumerable: false, get: () => decorator.canPurchase(this) });
Expand Down

0 comments on commit 6ac45ce

Please sign in to comment.