From 3092cfb59620e6fa05a125ffe314e62acd770064 Mon Sep 17 00:00:00 2001 From: Kimberlee Johnson Date: Wed, 8 Dec 2021 09:33:35 -0800 Subject: [PATCH] Updated roomConfig check to use existing variable --- custom/shared/contexts/CallProvider.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/custom/shared/contexts/CallProvider.js b/custom/shared/contexts/CallProvider.js index 5965113..5e8ad4d 100644 --- a/custom/shared/contexts/CallProvider.js +++ b/custom/shared/contexts/CallProvider.js @@ -56,9 +56,7 @@ export const CallProvider = ({ if (!config) return; if (config.exp) { - setRoomExp( - roomConfig?.config?.exp * 1000 || Date.now() + 1 * 60 * 1000 - ); + setRoomExp(config.exp * 1000 || Date.now() + 1 * 60 * 1000); } const browser = Bowser.parse(window.navigator.userAgent); const recordingType =