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

Handled empty plans for site

[Temp] Hide the plans section if plans are not present
This commit is contained in:
Rish 2020-04-14 12:41:26 +05:30
parent f727fdd1ed
commit 4d71056e12

View file

@ -208,6 +208,9 @@ export default class SignupPage extends React.Component {
marginBottom: '12px'
};
const plans = this.props.data.site && this.props.data.site.plans;
if (!plans) {
return null;
}
return (
<div style={{width: '100%'}}>
<div style={{fontWeight: 'bold', marginBottom: '9px'}}> Choose a Plan </div>