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-2072: Add subscription interval to ping params and change UpgradePlan CTA link params #586

Merged
merged 8 commits into from Jul 27, 2020

Remove null check

  • Loading branch information
benstrumeyer committed Jul 27, 2020
commit e873160d0228357566e928c6f2dfb0913b232245
@@ -560,17 +560,14 @@ class Metrics {
static _getSubscriptionInterval() {
const subscriptionInterval = conf && conf.account && conf.account.subscriptionData && conf.account.subscriptionData.planInterval;

if (subscriptionInterval) {
switch (subscriptionInterval) {
case 'month':
return 1;
case 'year':
return 2;
default:
return 0;
}
switch (subscriptionInterval) {
case 'month':
return 1;
case 'year':
return 2;
default:
return 0;
}
return 0;
}

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