Skip to content

Commit

Permalink
Don't show upsells for seo/analytics for premium (#8745)
Browse files Browse the repository at this point in the history
The work started in #8584 did not address the upsells/setting links in the SEO Tools and Google Analytics cards for Premium Plans.
  • Loading branch information
mattwiebe authored and zinigor committed Feb 5, 2018
1 parent 99a0355 commit 779ff75
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions _inc/client/components/settings-card/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export const SettingsCard = props => {
);

case FEATURE_GOOGLE_ANALYTICS_JETPACK:
if ( 'is-business-plan' === planClass ) {
if ( 'is-business-plan' === planClass || 'is-premium-plan' === planClass ) {
return '';
}
return (
Expand All @@ -164,7 +164,7 @@ export const SettingsCard = props => {
/>
);
case FEATURE_SEO_TOOLS_JETPACK:
if ( 'is-business-plan' === planClass ) {
if ( 'is-business-plan' === planClass || 'is-premium-plan' === planClass ) {
return '';
}

Expand Down Expand Up @@ -242,14 +242,14 @@ export const SettingsCard = props => {
break;

case FEATURE_GOOGLE_ANALYTICS_JETPACK:
if ( 'is-business-plan' !== planClass ) {
if ( 'is-business-plan' !== planClass && 'is-premium-plan' !== planClass ) {
return false;
}

break;

case FEATURE_SEO_TOOLS_JETPACK:
if ( 'is-business-plan' !== planClass ) {
if ( 'is-business-plan' !== planClass && 'is-premium-plan' !== planClass ) {
return false;
}

Expand Down

0 comments on commit 779ff75

Please sign in to comment.