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

GH-2036 Unlock Plus features on GBE/Midnight for all Premium & Plus users #549

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter
Filter file types
Jump to
Jump to file
Failed to load files.

Always

Just for now

@@ -529,7 +529,7 @@ class Stats extends React.Component {
return (
<StatsView
showResetModal={showResetModal}
showPitchModal={!user || !user.subscriptionsPlus}
showPitchModal={!user || (!user.subscriptionsPlus || !user.subscriptionsPremium)}
loggedIn={loggedIn}
getStats={this.getStats}
selection={selection}
@@ -214,8 +214,9 @@ class Summary extends React.Component {
*/
clickUpgradeBannerOrGoldPlusIcon() {
sendMessage('ping', 'plus_panel_from_badge');
const isSubscriber = this._isPlusSubscriber() || this._isPremiumSubscriber();

this.props.history.push(this._isPlusSubscriber() ? '/subscription/info' : `/subscribe/${!!this.props.user}`);
this.props.history.push(isSubscriber ? '/subscription/info' : `/subscribe/${!!this.props.user}`);
}

/**
ProTip! Use n and p to navigate between commits in a pull request.