fix: if no portalUrl, return a loading tag
This commit is contained in:
parent
d5f63490a5
commit
9378a984dd
|
@ -86,6 +86,10 @@ 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}>
|
||||||
|
|
Loading…
Reference in New Issue