Redirected member to home after plan update

no issue

- Takes member to home page popup on plan update
- Fetches new member session data via API to show updated plan
This commit is contained in:
Rish 2020-05-22 15:44:35 +05:30
parent dd2ad02e68
commit 97319dee7c

View File

@ -176,6 +176,12 @@ export default class ParentContainer extends React.Component {
await this.GhostApi.member.updateSubscription({
planName: plan, subscriptionId
});
const member = await this.GhostApi.member.sessionData();
this.setState({
action: 'updatePlan:success',
page: 'accountHome',
member: member
});
} else if (action === 'editBilling') {
await this.GhostApi.member.editBilling();
} else if (action === 'updateMember') {