Fix views reordering (#11431)

As per title
This commit is contained in:
Charles Bochet
2025-04-07 19:18:05 +02:00
committed by GitHub
parent 17b7e703b4
commit 20895f1129
3 changed files with 18 additions and 13 deletions

View File

@ -181,6 +181,9 @@ export const ChooseYourPlan = () => {
? BillingPlanKey.ENTERPRISE
: BillingPlanKey.PRO;
const planName = plans?.plans.find((plan) => plan.planKey === currentPlan)
?.baseProduct.name;
return (
<>
{isDefined(baseProductPrice) && isDefined(billing) ? (
@ -191,9 +194,7 @@ export const ChooseYourPlan = () => {
: t`Get your subscription`}
</Title>
{hasWithoutCreditCardTrialPeriod ? (
<SubTitle>
<Trans>Cancel anytime</Trans>
</SubTitle>
<SubTitle>{planName}</SubTitle>
) : (
withCreditCardTrialPeriod && (
<SubTitle>