Skip to content

Commit

Permalink
Checklists: Don't redirect disabled Jetpack checklists (#26566)
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal authored Aug 13, 2018
1 parent b47eac7 commit 2a049da
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions client/my-sites/checklist/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ class ChecklistMain extends PureComponent {
*/
maybeRedirectJetpack( prevProps = {} ) {
if (
/**
* Only send Jetpack users to plans if a checklist will be presented. Otherwise,
* let the "Not available" view render.
*/
config.isEnabled( 'jetpack/checklist' ) &&
this.props.siteSlug &&
false === this.props.isAtomic &&
this.props.isJetpack &&
Expand Down

0 comments on commit 2a049da

Please sign in to comment.