Updated roomConfig check to use existing variable

This commit is contained in:
Kimberlee Johnson 2021-12-08 09:33:35 -08:00
parent 3d2a752a78
commit 3092cfb596
1 changed files with 1 additions and 3 deletions

View File

@ -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 =