Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Onboarding spreadsheet bugs #38 (GH-2259), #44 (GH-2306), and #45 (GH-2305) #675

Merged
merged 16 commits into from Mar 17, 2021
Merged
Changes from 1 commit
Commits
File filter
Filter file types
Jump to
Jump to file
Failed to load files.

Always

Just for now

Next

Expand toggle and select plus plan if user is basic and selects ghost…

…ery search
  • Loading branch information
benstrumeyer committed Feb 2, 2021
commit eb30c6affdf7a23ce3007e00528ebc1edaa3700c
@@ -99,7 +99,8 @@ class ChoosePlanView extends React.Component {
}

setDefaultPlan = () => {
const { user } = this.props;
const { user, defaultSearch } = this.props;
const isBasic = !user || (user && !user.plusAccess && !user.premiumAccess);
const isPlus = (user && user.plusAccess) || false;
const isPremium = (user && user.premiumAccess) || false;

@@ -111,7 +112,12 @@ class ChoosePlanView extends React.Component {
this.selectPlusPlan();
return;
}
this.selectBasicPlan();
if (isBasic && defaultSearch === SEARCH_GHOSTERY) {
this.selectPlusPlan();
this.setState({ expanded: true });
} else {
this.selectBasicPlan();
}
}

isBasicPlanChecked = () => {
ProTip! Use n and p to navigate between commits in a pull request.