From b03be18d6fe6cdfd6b3dc54927edec643ec8af8a Mon Sep 17 00:00:00 2001
From: DraftMan <contact@draftman.fr>
Date: Wed, 1 Mar 2023 09:58:29 +0100
Subject: Fix `one-click-pr-or-gist` private free repos pr creation (#6392)

---
 source/features/one-click-pr-or-gist.tsx | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'source/features/one-click-pr-or-gist.tsx')

diff --git a/source/features/one-click-pr-or-gist.tsx b/source/features/one-click-pr-or-gist.tsx
index 01b9d444..824b3f30 100644
--- a/source/features/one-click-pr-or-gist.tsx
+++ b/source/features/one-click-pr-or-gist.tsx
@@ -48,6 +48,9 @@ void features.add(import.meta.url, {
 		pageDetect.isCompare,
 		pageDetect.isGist,
 	],
+	exclude: [
+		() => select.exists('[data-show-dialog-id="drafts-upgrade-dialog"]'),
+	],
 	deduplicate: 'has-rgh',
 	awaitDomReady: true,
 	init,
-- 
cgit v1.2.3

