From d5647eab3396ded5befe16e351e5a82ec12fa8dd Mon Sep 17 00:00:00 2001 From: Chris Staley Date: Mon, 30 Mar 2026 10:33:39 -0600 Subject: [PATCH] fix: remove dead userDismissed ref after auto-open removal The userDismissed ref was only read by the removed auto-open useEffect. Remove the ref declaration and the three onClose assignments that set it. --- src/app/(dashboard)/dashboard/providers/[id]/page.tsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/app/(dashboard)/dashboard/providers/[id]/page.tsx b/src/app/(dashboard)/dashboard/providers/[id]/page.tsx index df28fc9089..ca1a3a1f4b 100644 --- a/src/app/(dashboard)/dashboard/providers/[id]/page.tsx +++ b/src/app/(dashboard)/dashboard/providers/[id]/page.tsx @@ -802,7 +802,6 @@ export default function ProviderDetailPage() { const { copied, copy } = useCopyToClipboard(); const t = useTranslations("providers"); const notify = useNotificationStore(); - const userDismissed = useRef(false); const [proxyTarget, setProxyTarget] = useState(null); const [proxyConfig, setProxyConfig] = useState(null); const [connProxyMap, setConnProxyMap] = useState< @@ -2408,7 +2407,6 @@ export default function ProviderDetailPage() { providerInfo={providerInfo} onSuccess={handleOAuthSuccess} onClose={() => { - userDismissed.current = true; setShowOAuthModal(false); }} /> @@ -2417,7 +2415,6 @@ export default function ProviderDetailPage() { isOpen={showOAuthModal} onSuccess={handleOAuthSuccess} onClose={() => { - userDismissed.current = true; setShowOAuthModal(false); }} /> @@ -2428,7 +2425,6 @@ export default function ProviderDetailPage() { providerInfo={providerInfo} onSuccess={handleOAuthSuccess} onClose={() => { - userDismissed.current = true; setShowOAuthModal(false); }} />