Skip to content

Commit e7e08c0

Browse files
committed
Fix nullcheck for integrations
Fixes codesandbox#3229 Fixes codesandbox#3113 Fixes codesandbox#3111 Fixes codesandbox#2587
1 parent d665449 commit e7e08c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/app/src/app/pages/Sandbox/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export const Sandbox: React.FC<Props> = ({ match }) => {
5151
);
5252

5353
function getContent() {
54-
const { hasLogIn } = state;
54+
const { hasLogIn, isLoggedIn } = state;
5555

5656
if (state.editor.error) {
5757
const isGithub = match.params.id.includes('github');
@@ -81,7 +81,7 @@ export const Sandbox: React.FC<Props> = ({ match }) => {
8181
{hasLogIn ? 'Dashboard' : 'Homepage'}
8282
</Button>
8383
</div>
84-
{hasLogIn && isGithub && !hasPrivateAccess && (
84+
{isLoggedIn && isGithub && !hasPrivateAccess && (
8585
<div style={{ maxWidth: 400, marginTop: '2.5rem', width: '100%' }}>
8686
<div
8787
style={{

0 commit comments

Comments
 (0)