Skip to content

Commit f3e3796

Browse files
committed
Remove "starter" plan checks from team invitation logic
1 parent 7437289 commit f3e3796

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

apps/dashboard/src/app/(app)/login/onboarding/team-onboarding/InviteTeamMembers.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ export function InviteTeamMembersUI(props: {
8787
client={props.client}
8888
customCTASection={
8989
<div className="flex gap-3">
90-
{(props.team.billingPlan === "free" ||
91-
props.team.billingPlan === "starter") && (
90+
{props.team.billingPlan === "free" && (
9291
<Button
9392
className="gap-2"
9493
onClick={() => {

apps/dashboard/src/app/(app)/team/[team_slug]/(team)/~/settings/members/InviteSection.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,7 @@ export function InviteSection(props: {
8585
let bottomSection: React.ReactNode = null;
8686
const maxAllowedInvitesAtOnce = 10;
8787
// invites are enabled if user has edit permission and team plan is not "free"
88-
const inviteEnabled =
89-
teamPlan !== "free" &&
90-
teamPlan !== "starter" &&
91-
props.userHasEditPermission;
88+
const inviteEnabled = teamPlan !== "free" && props.userHasEditPermission;
9289

9390
const form = useForm<InviteFormValues>({
9491
defaultValues: {
@@ -111,7 +108,7 @@ export function InviteSection(props: {
111108
},
112109
});
113110

114-
if (teamPlan === "free" || teamPlan === "starter") {
111+
if (teamPlan === "free") {
115112
bottomSection = (
116113
<div className="lg:px6 flex items-center justify-between gap-4 border-border border-t px-4 py-4">
117114
<p className="text-muted-foreground text-sm">

0 commit comments

Comments
 (0)