diff --git a/libs/remix-ui/git/src/components/github/devicecode.tsx b/libs/remix-ui/git/src/components/github/devicecode.tsx index 9ce3e5ec02..9c74245bb0 100644 --- a/libs/remix-ui/git/src/components/github/devicecode.tsx +++ b/libs/remix-ui/git/src/components/github/devicecode.tsx @@ -77,7 +77,7 @@ export const GetDeviceCode = () => { return ( <> - {(context.gitHubUser && context.gitHubUser.login) ? null : <> + {(context.gitHubUser && context.gitHubUser.isConnected) ? null : <> Connect to GitHub { await getDeviceCodeFromGitHub() @@ -104,7 +104,7 @@ export const GetDeviceCode = () => { } { - (context.gitHubUser && context.gitHubUser.login) ? + (context.gitHubUser && context.gitHubUser.isConnected) ? { disconnect() @@ -112,7 +112,7 @@ export const GetDeviceCode = () => { : null } { - (context.gitHubUser && context.gitHubUser.login) ? + (context.gitHubUser && context.gitHubUser.isConnected) ? Connected as {context.gitHubUser.login}