From 3675958113dbb7ee731966a76164029957760010 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Thu, 6 Jun 2024 19:52:51 +0200 Subject: [PATCH] scope warning --- .../git/src/components/panels/githubcredentials.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libs/remix-ui/git/src/components/panels/githubcredentials.tsx b/libs/remix-ui/git/src/components/panels/githubcredentials.tsx index bfd02838fc..eeb6b4599c 100644 --- a/libs/remix-ui/git/src/components/panels/githubcredentials.tsx +++ b/libs/remix-ui/git/src/components/panels/githubcredentials.tsx @@ -19,7 +19,11 @@ export const GitHubCredentials = () => { useEffect(() => { refresh() - setScopeWarning(!(context.gitHubScopes && context.gitHubScopes.length > 0)) + if(context.gitHubUser){ + setScopeWarning(!(context.gitHubScopes && context.gitHubScopes.length > 0)) + }else{ + setScopeWarning(false) + } }, [loader.plugin, context.gitHubAccessToken, context.userEmails, context.gitHubUser, context.gitHubScopes]) function handleChangeTokenState(e: string): void {