From 58f6ae323b4f6348593e2301bce636f95b79dd25 Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Mon, 13 Oct 2014 16:33:01 +0100 Subject: [PATCH] fix which plan is "your plan" on dashboard --- services/web/app/views/subscriptions/dashboard.jade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/app/views/subscriptions/dashboard.jade b/services/web/app/views/subscriptions/dashboard.jade index 1526abf11a..28514cc467 100644 --- a/services/web/app/views/subscriptions/dashboard.jade +++ b/services/web/app/views/subscriptions/dashboard.jade @@ -16,7 +16,7 @@ mixin printPlan(plan) td -if (subscription.state == "free-trial") a(href="/user/subscription/new?planCode=#{plan.planCode}").btn.btn-success #{translate("subscribe_to_this_plan")} - -else if (plan.planCode == subscription.planCode) + -else if (typeof(subscription.planCode) != "undefined" && plan.planCode == subscription.planCode.split("_")[0]) button.btn.disabled #{translate("your_plan")} -else form