From 71c56c4462464f74119086e82140f88f2690ab47 Mon Sep 17 00:00:00 2001 From: sylenien Date: Thu, 3 Nov 2022 13:00:00 +0100 Subject: [PATCH] fix(player): fix extending session info --- frontend/app/components/Session/LivePlayer.js | 3 ++- frontend/app/player/singletone.js | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) 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);