fix: custom templates on team plan (#18792)

Co-authored-by: CarinaWolli <[email protected]>
This commit is contained in:
Carina WollendorferandCarinaWolli authored and GitHub committed 2025-01-21 20:16:57 +00:00
1 parent 65b70d682d
commit f523ce7795
6 files changed
+19 -29

No files matched your search

+1 -1
View File
@@ -42,7 +42,7 @@ export function useHasEnterprisePlan() {
export function useHasActiveTeamPlan(teamId?: number) {
if (IS_SELF_HOSTED) return { isPending: false, hasActiveTeamPlan: true };
const { data, isPending } = trpc.viewer.teams.hasActiveTeamPlan.useQuery({ teamId });
const { data, isPending } = trpc.viewer.teams.hasActiveTeamPlan.useQuery();
return { isPending, hasActiveTeamPlan: !!data };
}