Skip to content

Commit

Permalink
Fix gh auth
Browse files Browse the repository at this point in the history
  • Loading branch information
amanape committed Nov 22, 2024
1 parent dad647e commit 5e2a9a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/hooks/use-github-auth-url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interface UseGitHubAuthUrlConfig {

export const useGitHubAuthUrl = (config: UseGitHubAuthUrlConfig) =>
React.useMemo(() => {
if (config.appMode === "saas" && config.gitHubToken)
if (config.appMode === "saas" && !config.gitHubToken)
return generateGitHubAuthUrl(
config.gitHubClientId || "",
new URL(window.location.href),
Expand Down

0 comments on commit 5e2a9a4

Please sign in to comment.