diff --git a/apps/remix-ide/src/app/files/dgitProvider.ts b/apps/remix-ide/src/app/files/dgitProvider.ts
index 1fa78ca304..a927de03a5 100644
--- a/apps/remix-ide/src/app/files/dgitProvider.ts
+++ b/apps/remix-ide/src/app/files/dgitProvider.ts
@@ -1016,14 +1016,12 @@ class DGitProvider extends Plugin {
const user = await octokit.request('GET /user')
const emails = await octokit.request('GET /user/emails')
- const scopes = user.headers['x-oauth-scopes'];
-
- console.log('scopes', scopes)
+ const scopes = user.headers['x-oauth-scopes'] || ''
return {
user: user.data,
emails: emails.data,
- scopes: scopes.split(',')
+ scopes: scopes && scopes.split(',')
}
} catch (e) {
return null
diff --git a/libs/remix-ui/git/src/components/github/devicecode.tsx b/libs/remix-ui/git/src/components/github/devicecode.tsx
index 55e01bf526..9e53099699 100644
--- a/libs/remix-ui/git/src/components/github/devicecode.tsx
+++ b/libs/remix-ui/git/src/components/github/devicecode.tsx
@@ -73,13 +73,6 @@ export const GetDeviceCode = () => {
await actions.loadGitHubUserFromToken()
}
- const checkConnection = async () => {
- //await actions.loadGitHubUserFromToken()
- }
-
- useEffect(() => {
-
- }, [])
return (
<>
diff --git a/libs/remix-ui/git/src/components/panels/commands.tsx b/libs/remix-ui/git/src/components/panels/commands.tsx
index bb1abc9991..f1b9cfc952 100644
--- a/libs/remix-ui/git/src/components/panels/commands.tsx
+++ b/libs/remix-ui/git/src/components/panels/commands.tsx
@@ -10,7 +10,5 @@ export const Commands = () => {