diff --git a/src/routes/sources/[id]/_Github.svelte b/src/routes/sources/[id]/_Github.svelte
index b03fe8abd..6d91f2699 100644
--- a/src/routes/sources/[id]/_Github.svelte
+++ b/src/routes/sources/[id]/_Github.svelte
@@ -80,10 +80,13 @@
- {#if !source.githubAppId}
+ {#if !source.githubApp?.installationId}
{:else if source.githubApp?.installationId}
- {#if !source.gitlabAppId && !source.githubAppId}
+ {#if !source.gitlabAppId && (!source.githubAppId || !source.githubApp?.installationId)}