fix: custom templates on team plan (#18792)
Co-authored-by: CarinaWolli <[email protected]>
This commit is contained in:
1 parent
65b70d682d
commit
f523ce7795
6 files changed
+19
-29
No files matched your search
@@ -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 };
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user