Skip to content

Commit dca13e2

Browse files
committed
ack PR comment
1 parent 19b70d1 commit dca13e2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/sim/lib/auth/auth-client.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ export function useSession(): SessionHookResult {
4242
return ctx
4343
}
4444

45-
export const { useActiveOrganization } = client
45+
export const useActiveOrganization = isBillingEnabled
46+
? client.useActiveOrganization
47+
: () => ({ data: undefined, isPending: false, error: null })
4648

4749
export const useSubscription = () => {
4850
return {

0 commit comments

Comments
 (0)