We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19b70d1 commit dca13e2Copy full SHA for dca13e2
apps/sim/lib/auth/auth-client.ts
@@ -42,7 +42,9 @@ export function useSession(): SessionHookResult {
42
return ctx
43
}
44
45
-export const { useActiveOrganization } = client
+export const useActiveOrganization = isBillingEnabled
46
+ ? client.useActiveOrganization
47
+ : () => ({ data: undefined, isPending: false, error: null })
48
49
export const useSubscription = () => {
50
return {
0 commit comments