fix: name the plan a team bought, not its policy id

`i18n()` echoes a key it has no translation for, and a team tier has
none — so a seat's dashboard read "team-basic" where a personal plan
reads "Basic". The offering already travels with the subscription, so
its display name is right there; `i18n` stays the fallback for the
personal tiers that do have keys.
This commit is contained in:
Juan Castro
2026-09-11 17:44:30 -04:00
parent 63f857ce3c
commit de74b0c488
+4 -1
View File
@@ -465,7 +465,10 @@ const TabHome = {
? formatTrialEnd(subscription.trialEndsAt)
: null;
$el_window.find('.bento-plan-name').text(i18n(planName));
// A team tier has no translation key, so i18n would echo the id.
$el_window
.find('.bento-plan-name')
.text(subscription?.offering?.name_en || i18n(planName));
// Reset state-dependent classes / warning each (re)render.
const $badge = $el_window