diff --git a/src/hub.js b/src/hub.js
index d9f4ef870a73f176b8ee8e933a221c0ad1cdaa65..c29db17732cb78d8b71910a38c3c22a264de9e63 100644
--- a/src/hub.js
+++ b/src/hub.js
@@ -543,10 +543,6 @@ const onReady = async () => {
     }
   };
 
-  const setRoom = (hubId, hubName) => {
-    remountUI({ hubId, hubName });
-  };
-
   // Connect to reticulum over phoenix channels to get hub info.
   const hubId = qs.get("hub_id") || document.location.pathname.substring(1).split("/")[0];
   console.log(`Hub ID: ${hubId}`);
@@ -576,7 +572,7 @@ const onReady = async () => {
       initialEnvironmentEl.setAttribute("gltf-bundle", `src: ${sceneUrl}`);
     }
 
-    setRoom(hub.hub_id, hub.name);
+    remountUI({ hubId: hub.hub_id, hubName: hub.name });
     hubChannel.setPhoenixChannel(channel);
     if (isBotMode) enterSceneWhenReady(hub.hub_id);