Compare commits

..

No commits in common. "056c1de31f3a066f26ecb2f5f0ebec412620d5f3" and "d5f63490a5b1437e21176f99e9bb44356358c716" have entirely different histories.

1 changed files with 1 additions and 5 deletions

View File

@ -78,7 +78,7 @@ export default function Root() {
fetch('/api/meta') fetch('/api/meta')
.then(response => response.json()) .then(response => response.json())
.then(data => { .then(data => {
setPortalUrl(`https://${data.portalUrl}`); setPortalUrl(data.domain);
}) })
.catch((error: any) => { .catch((error: any) => {
console.error('Failed to fetch portal url:', error); console.error('Failed to fetch portal url:', error);
@ -86,10 +86,6 @@ export default function Root() {
} }
}, [portalUrl]); }, [portalUrl]);
if (!portalUrl) {
return <p>Loading...</p>;
}
const sdk = Sdk.create(portalUrl); const sdk = Sdk.create(portalUrl);
return ( return (
<SdkContextProvider sdk={sdk}> <SdkContextProvider sdk={sdk}>