Skip to content

Commit

Permalink
Signup: Rename newPlanActions to freeTrialActions so that it makes mo…
Browse files Browse the repository at this point in the history
…re sense
  • Loading branch information
scruffian committed Dec 12, 2015
1 parent dab7396 commit 213b8f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/components/plans/plan-actions/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = React.createClass( {
}

if ( this.props.isInSignup ) {
return config.isEnabled( 'upgrades/free-trials' ) ? this.newPlanActions() : this.upgradeActions();
return config.isEnabled( 'upgrades/free-trials' ) ? this.freeTrialActions() : this.upgradeActions();
}

if ( this.siteHasThisPlan() ) {
Expand All @@ -53,7 +53,7 @@ module.exports = React.createClass( {

const canStartTrial = config.isEnabled( 'upgrades/free-trials' ) ? this.props.siteSpecificPlansDetails.can_start_trial : false;

return canStartTrial ? this.newPlanActions() : this.upgradeActions();
return canStartTrial ? this.freeTrialActions() : this.upgradeActions();
},

freePlanButton: function() {
Expand Down Expand Up @@ -162,7 +162,7 @@ module.exports = React.createClass( {
);
},

newPlanActions: function() {
freeTrialActions: function() {
if ( isFreePlan( this.props.plan ) ) {
return this.freePlanButton();
}
Expand Down

0 comments on commit 213b8f8

Please sign in to comment.