mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -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}));
|
({tierId, cadence} = getProductCadenceFromPrice({site: state?.site, priceId: plan}));
|
||||||
await api.member.checkoutPlan({plan, tierId, cadence, email, name, newsletters, offerId});
|
await api.member.checkoutPlan({plan, tierId, cadence, email, name, newsletters, offerId});
|
||||||
}
|
}
|
||||||
|
return {
|
||||||
|
page: 'loading'
|
||||||
|
};
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
page: 'magiclink',
|
page: 'magiclink',
|
||||||
|
@ -283,7 +286,7 @@ async function updateNewsletterPreference({data, state, api}) {
|
||||||
const member = await api.member.update(updateData);
|
const member = await api.member.update(updateData);
|
||||||
const action = 'updateNewsletterPref:success';
|
const action = 'updateNewsletterPref:success';
|
||||||
return {
|
return {
|
||||||
action,
|
action,
|
||||||
member
|
member
|
||||||
};
|
};
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue