mirror of
https://github.com/HeyPuter/puter.git
synced 2026-09-21 12:46:00 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user