mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 12:21:36 +03:00
Ensured plan is lowercased before being passed
This makes sure that we can correctly match the plan against either "monthly" or "yearly"
This commit is contained in:
parent
4785e25fe4
commit
66b317ef78
@ -68,7 +68,7 @@ export function planClickHandler({event, el, errorEl, siteUrl, site, member, cli
|
||||
el.removeEventListener('click', clickHandler);
|
||||
event.preventDefault();
|
||||
let plan = el.dataset.membersPlan;
|
||||
let requestData = getCheckoutSessionDataFromPlanAttribute(site, plan);
|
||||
let requestData = getCheckoutSessionDataFromPlanAttribute(site, plan.toLowerCase());
|
||||
let successUrl = el.dataset.membersSuccess;
|
||||
let cancelUrl = el.dataset.membersCancel;
|
||||
let checkoutSuccessUrl;
|
||||
|
Loading…
Reference in New Issue
Block a user