Skip to content

Commit

Permalink
fixed white screen when trying to open the live demo
Browse files Browse the repository at this point in the history
  • Loading branch information
ialakey committed Jun 12, 2024
1 parent e580a67 commit 8b5acb1
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions web/src/containers/App/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,8 @@ interface SignInProps {
}

function SignIn(props: SignInProps) {
const clientId = localStorage.getItem('clientId');
if (clientId) {
authorize(clientId, { nextUrl: props.originPathName });
} else {
authorize('sdc-ide', { nextUrl: props.originPathName });
}
const clientId = localStorage.getItem('clientId') || 'sdc-ide';
authorize(clientId, { nextUrl: props.originPathName });

return null;
}
Expand Down

0 comments on commit 8b5acb1

Please sign in to comment.