scope warning

pull/4791/head
filip mertens 6 months ago
parent 31bca3eb20
commit 3675958113
  1. 6
      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 {

Loading…
Cancel
Save