Skip to content

Commit

Permalink
Plans: only show monthly breakdown for plans (#5384)
Browse files Browse the repository at this point in the history
  • Loading branch information
gwwar authored and roundhill committed May 17, 2016
1 parent 1bc4096 commit 1bfc49b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion client/my-sites/upgrades/cart/cart-item.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ import {
isCredits,
isDomainProduct,
isGoogleApps,
isTheme
isTheme,
isPlan
} from 'lib/products-values';
import * as upgradesActions from 'lib/upgrades/actions';
import { abtest } from 'lib/abtest';
Expand Down Expand Up @@ -62,6 +63,10 @@ export default React.createClass( {
return null;
}

if ( ! isPlan( this.props.cartItem ) ) {
return null;
}

if ( abtest( 'planPricing' ) === 'annual' || cost <= 0 ) {
return null;
}
Expand Down

0 comments on commit 1bfc49b

Please sign in to comment.