Skip to content

Commit 2059a46

Browse files
committed
fixes
1 parent 21a602c commit 2059a46

2 files changed

Lines changed: 1 addition & 9 deletions

File tree

src/lib/components/billing/planSelection.svelte

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,6 @@
3636
return plan.group === BillingPlanGroup.Starter && anyOrgFree;
3737
}
3838
39-
function shouldForceShowTooltip(plan: Models.BillingPlan) {
40-
if (!shouldDisable(plan)) return false;
41-
// Don't force-show when upgrading from Free (current org on Free, user selected Pro)
42-
if ($organization?.billingPlanId === plan.$id && selectedPlan !== plan.$id) return false;
43-
return true;
44-
}
45-
4639
$effect(() => {
4740
selectedBillingPlan = billingIdToPlan(selectedPlan);
4841
});
@@ -55,7 +48,6 @@
5548
name="plan"
5649
bind:group={selectedPlan}
5750
disabled={!selfService || shouldDisable(plan)}
58-
tooltipShow={shouldForceShowTooltip(plan)}
5951
value={plan.$id}
6052
title={plan.name}>
6153
<svelte:fragment slot="action">

src/routes/(console)/organization-[organization]/change-plan/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@
486486
bind:couponData={selectedCoupon}
487487
bind:billingBudget
488488
organizationId={data.organization.$id} />
489-
{:else}
489+
{:else if isSelfService}
490490
<PlanComparisonBox downgrade={data.hasFreeOrgs ? false : isDowngrade} />
491491
{/if}
492492
</svelte:fragment>

0 commit comments

Comments
 (0)