Skip to content

Commit

Permalink
Allow coupon query param on the /plans page
Browse files Browse the repository at this point in the history
  • Loading branch information
jeyip committed Oct 23, 2024
1 parent ce739e8 commit ebe6bd7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/my-sites/plans/controller.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,16 @@ export function plans( context, next ) {
return productSelect( '/plans' )( context, next );
}

const withDiscount = context.query.coupon || context.query.discount;

context.primary = (
<Plans
context={ context }
intervalType={ context.params.intervalType }
customerType={ context.query.customerType }
selectedFeature={ context.query.feature }
selectedPlan={ context.query.plan }
withDiscount={ context.query.discount }
withDiscount={ withDiscount }
discountEndDate={ context.query.ts }
redirectTo={ context.query.redirect_to }
redirectToAddDomainFlow={
Expand Down

0 comments on commit ebe6bd7

Please sign in to comment.