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]);
|
||||
|
||||
if (!portalUrl) {
|
||||
return <p>Loading...</p>;
|
||||
}
|
||||
|
||||
const sdk = Sdk.create(portalUrl);
|
||||
return (
|
||||
<SdkContextProvider sdk={sdk}>
|
||||
|
|
Loading…
Reference in New Issue