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 1 commit
Commits
File filter
Filter file types
Jump to
Jump to file
Failed to load files.

Always

Just for now

Next

Allow user to click subscriber badge icon

  • Loading branch information
benstrumeyer committed May 12, 2020
commit 764abc5e506a7261530d7993dacf8997959f3cea
@@ -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.