Skip to content

Commit

Permalink
fix extracting of intervals from plans to handle things other than sm…
Browse files Browse the repository at this point in the history
…b_monthly or smb_yearly
  • Loading branch information
bdzim committed Oct 17, 2017
1 parent 7e3af19 commit a7f9795
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/apps/blue_management/blue_mgnt/static/js/billing.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
this.set("quantity", quantity);
if (SMB.current_plan_quantity && SMB.current_plan_frequency) {
this.set("has_current_plan", true);
this.set("frequency", SMB.current_plan_frequency.replace(/^smb_/, ""));
this.set("frequency", SMB.current_plan_frequency.indexOf('month') !== -1 ? 'monthly' : 'yearly');
// assume that if they have a plan they have a cc on file
this.set("has_cc", true);
this.set("payment_method", "existing");
Expand Down

0 comments on commit a7f9795

Please sign in to comment.