From 632d95000cc50855502a0cb3139ca8820593c064 Mon Sep 17 00:00:00 2001 From: Will Anderson Date: Thu, 14 May 2026 11:36:02 -0500 Subject: [PATCH] Fix device count: show 1 for free plan, 2 for professional/founding --- src/account.el | 2 +- src/js/account-dashboard.el | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/account.el b/src/account.el index 4638860..aed50e0 100644 --- a/src/account.el +++ b/src/account.el @@ -818,7 +818,7 @@ fn account_devices_card() -> String { el_div("class=\"device-icon\"", account_signin_svg_device()) + el_div( "", - el_p("class=\"devices-count\"", "2 devices included with your plan") + + el_p("class=\"devices-count\" id=\"devices-count-el\"", "2 devices included with your plan") + el_p("class=\"devices-sub\"", "Currently: Setup at launch") ) ) + diff --git a/src/js/account-dashboard.el b/src/js/account-dashboard.el index af38ec1..9d093ce 100644 --- a/src/js/account-dashboard.el +++ b/src/js/account-dashboard.el @@ -103,6 +103,13 @@ fn main() -> Void { } setHtml('plan-billing-note-el', billingNote); + var devicesEl = document.getElementById('devices-count-el'); + if (devicesEl) { + devicesEl.textContent = (plan === 'free') + ? '1 device included with your plan' + : '2 devices included with your plan'; + } + var meta = ''; if (createdAt) { var d = new Date(createdAt);