Skip to content

Commit fb91c87

Browse files
committed
Improve how the Free tier shows no preview branches
1 parent be5ca8b commit fb91c87

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

apps/webapp/app/routes/resources.orgs.$organizationSlug.select-plan.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,13 +1085,17 @@ function RealtimeConcurrency({ limits, children }: { limits: Limits; children?:
10851085
function Branches({ limits }: { limits: Limits }) {
10861086
return (
10871087
<FeatureItem checked={limits.branches.number > 0}>
1088-
{limits.branches.number}
1089-
{limits.branches.canExceed ? "+ " : " "}
1088+
{limits.branches.number > 0 && (
1089+
<>
1090+
{limits.branches.number}
1091+
{limits.branches.canExceed ? "+ " : " "}
1092+
</>
1093+
)}
10901094
<DefinitionTip
10911095
title={pricingDefinitions.branches.title}
10921096
content={pricingDefinitions.branches.content}
10931097
>
1094-
preview branches
1098+
{limits.branches.number > 0 ? "preview" : "Preview"} branches
10951099
</DefinitionTip>
10961100
</FeatureItem>
10971101
);

0 commit comments

Comments
 (0)