0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00

Added redirect to account home for complimentary member

no issue

- Complimentary members should be redirected to account home when attempted to open the account plan page via portal link
This commit is contained in:
Rish 2020-10-13 13:32:09 +05:30
parent da7aee7003
commit ac162cf1ea

View file

@ -9,7 +9,7 @@ import * as Fixtures from './utils/fixtures';
import ActionHandler from './actions';
import './App.css';
import NotificationParser from './utils/notifications';
import {createPopupNotification} from './utils/helpers';
import {createPopupNotification, isComplimentaryMember} from './utils/helpers';
const React = require('react');
const DEV_MODE_DATA = {
@ -346,6 +346,10 @@ export default class App extends React.Component {
page = member ? 'accountHome' : 'signup';
}
if (page === 'accountPlan' && isComplimentaryMember({member})) {
page = 'accountHome';
}
return getActivePage({page});
}