Skip to content

Commit 0ddb8cc

Browse files
authored
fix: Github provider tests (#9619)
1 parent 8eefdd4 commit 0ddb8cc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/core/src/providers/github.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ export default function GitHub(
128128
}
129129
}
130130
): OAuthConfig<GitHubProfile> {
131-
const baseUrl = config.enterprise?.baseUrl ?? "https://github.com"
132-
const apiBaseUrl = config.enterprise?.baseUrl
133-
? `${config.enterprise?.baseUrl}/api/v3`
131+
const baseUrl = config?.enterprise?.baseUrl ?? "https://github.com"
132+
const apiBaseUrl = config?.enterprise?.baseUrl
133+
? `${config?.enterprise?.baseUrl}/api/v3`
134134
: "https://api.github.com"
135135

136136
return {

0 commit comments

Comments
 (0)