Skip to content

Commit bf85e96

Browse files
committed
fix incorrect check in query enabled
1 parent 390e8d2 commit bf85e96

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

packages/shared/src/react/hooks/useOAuthConsent.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,7 @@ export function useOAuthConsent(params: UseOAuthConsentParams = {}): UseOAuthCon
7171
});
7272

7373
const hasClientId = oauthClientId.length > 0;
74-
const queryEnabled = Boolean(user) && hasClientId && enabled && clerk.loaded && !!clerk.oauthApplication;
75-
console.log('queryEnabled', {
76-
user: Boolean(user),
77-
hasClientId,
78-
enabled,
79-
clerkLoaded: clerk.loaded,
80-
hasOAuthApplication: !!clerk.oauthApplication,
81-
});
74+
const queryEnabled = Boolean(user) && hasClientId && enabled && clerk.loaded;
8275

8376
const query = useClerkQuery({
8477
queryKey,

0 commit comments

Comments
 (0)