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:
parent
6a3ea02fed
commit
dc032fac02
1 changed files with 4 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue