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 2fea7cb commit 90f4f9e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions web/src/containers/App/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import queryString from 'query-string';
import { useEffect, useRef } from 'react';
import { Route, Routes, useLocation, Navigate } from 'react-router-dom';
import { setData } from 'web/src/services/localStorage';
import { getData, setData } from 'web/src/services/localStorage';

import { RenderRemoteData } from 'fhir-react/lib/components/RenderRemoteData';
import { useService } from 'fhir-react/lib/hooks/service';
Expand Down Expand Up @@ -84,7 +84,9 @@ function SignIn(props: SignInProps) {
if (clientId) {
authorize(clientId, { nextUrl: props.originPathName });
} else {
console.error('Client ID is not specified');
const storageData = getData();
const baseUrl = storageData.connection.baseUrl;
window.location.href = baseUrl + '?client=sdc-ide';
}

return null;
Expand Down

0 comments on commit 90f4f9e

Please sign in to comment.