From d25664cd7d576a18b76cf01cef351afe03d5bd8b Mon Sep 17 00:00:00 2001 From: Greg Fodor <gfodor@gmail.com> Date: Mon, 15 Oct 2018 22:59:01 +0000 Subject: [PATCH] Fix short links on mini invite --- src/hub.js | 2 +- src/react-components/ui-root.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hub.js b/src/hub.js index ec589e2da..9685b2474 100644 --- a/src/hub.js +++ b/src/hub.js @@ -257,7 +257,7 @@ async function handleHubChannelJoined(entryManager, hubChannel, data) { document .querySelector("#hud-hub-entry-link") - .setAttribute("text", { value: `hub.link/${hub.entry_code}`, width: 1.1, align: "center" }); + .setAttribute("text", { value: `hub.link/${hub.hub_id}`, width: 1.1, align: "center" }); scene.setAttribute("networked-scene", { room: hub.hub_id, diff --git a/src/react-components/ui-root.js b/src/react-components/ui-root.js index 88d19abd2..702845088 100644 --- a/src/react-components/ui-root.js +++ b/src/react-components/ui-root.js @@ -553,7 +553,7 @@ class UIRoot extends Component { }; onMiniInviteClicked = () => { - const link = "https://hub.link/" + this.props.hubEntryCode; + const link = "https://hub.link/" + this.props.hubId; this.setState({ miniInviteActivated: true }); setTimeout(() => { -- GitLab