Skip to content
Snippets Groups Projects
Commit d2109c98 authored by Greg Fodor's avatar Greg Fodor
Browse files

Fix prop type error on homepage

parent 1b574d31
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ const sceneId = qs.get("scene_id") || (pathname.startsWith("/scenes/") && pathna
const root = (
<HomeRoot
initialEnvironment={qs.get("initial_environment")}
sceneId={sceneId}
sceneId={sceneId || ""}
authVerify={qs.has("auth_topic")}
authTopic={qs.get("auth_topic")}
authToken={qs.get("auth_token")}
......
......@@ -57,6 +57,10 @@ export default class SceneEntryManager {
if (qsTruthy("offline")) return;
if (mediaStream) {
NAF.connection.adapter.setLocalMediaStream(mediaStream);
}
if (isBotMode) {
this.runBot(mediaStream);
return;
......@@ -68,10 +72,6 @@ export default class SceneEntryManager {
this.store.update({ activity: { lastEnteredAt: new Date().toISOString() } });
});
if (mediaStream) {
NAF.connection.adapter.setLocalMediaStream(mediaStream);
}
this.spawnAvatar();
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment