0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Fixed incorrectly showing magic link page on paid checkout

closes https://github.com/TryGhost/Team/issues/2274

When clicking on a tier, just before being redirected to the Stripe checkout, a Portal modal incorrectly showed the "Now check your email" message. Instead, this now shows a loading popup as expected while the checkout session is being created and redirected to.
This commit is contained in:
Rishabh 2022-11-17 12:20:40 +05:30
parent 6a3ea02fed
commit dc032fac02

View file

@ -106,6 +106,9 @@ async function signup({data, state, api}) {
({tierId, cadence} = getProductCadenceFromPrice({site: state?.site, priceId: plan}));
await api.member.checkoutPlan({plan, tierId, cadence, email, name, newsletters, offerId});
}
return {
page: 'loading'
};
}
return {
page: 'magiclink',
@ -283,7 +286,7 @@ async function updateNewsletterPreference({data, state, api}) {
const member = await api.member.update(updateData);
const action = 'updateNewsletterPref:success';
return {
action,
action,
member
};
} catch (e) {