diff --git a/frontend/app/components/Session/LivePlayer.js b/frontend/app/components/Session/LivePlayer.js index 63cede36e..7e0f09145 100644 --- a/frontend/app/components/Session/LivePlayer.js +++ b/frontend/app/components/Session/LivePlayer.js @@ -34,8 +34,9 @@ function LivePlayer ({ }) { useEffect(() => { if (!loadingCredentials) { + const sessionWithAgentData = { - ...session, + ...session.toJS(), agentInfo: { email: userEmail, name: userName, diff --git a/frontend/app/player/singletone.js b/frontend/app/player/singletone.js index 1c1a856e6..fd62540f7 100644 --- a/frontend/app/player/singletone.js +++ b/frontend/app/player/singletone.js @@ -29,7 +29,6 @@ document.addEventListener("visibilitychange", function() { }); export function init(session, config, live = false) { - // const live = session.live; const endTime = !live && session.duration.valueOf(); instance = new Player(session, config, live);