From 20a103960dafdff32db23060d523a0678d14507b Mon Sep 17 00:00:00 2001
From: Greg Fodor <gfodor@gmail.com>
Date: Fri, 13 Apr 2018 21:11:48 -0700
Subject: [PATCH] Fixes from PR

---
 src/hub.js | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/hub.js b/src/hub.js
index 38773c29a..5838ec7e3 100644
--- a/src/hub.js
+++ b/src/hub.js
@@ -113,10 +113,7 @@ concurrentLoadDetector.start();
 store.update({ profile: { ...generateDefaultProfile(), ...(store.state.profile || {}) } });
 
 async function exitScene() {
-  if (hubChannel) {
-    hubChannel.disconnect();
-  }
-
+  hubChannel.disconnect();
   const scene = document.querySelector("a-scene");
   scene.renderer.animate(null); // Stop animation loop, TODO A-Frame should do this
   document.body.removeChild(scene);
@@ -192,7 +189,7 @@ async function enterScene(mediaStream, enterInVR, janusRoomId) {
   if (!qsTruthy("offline")) {
     document.body.addEventListener("connected", () => {
       hubChannel.sendEntryEvent().then(() => {
-        store.update({ lastEnteredAt: moment().format() });
+        store.update({ lastEnteredAt: moment().toJSON() });
       });
     });
 
-- 
GitLab