diff --git a/react/features/participants-pane/functions.js b/react/features/participants-pane/functions.js index 5dfed11bf..bced1dacb 100644 --- a/react/features/participants-pane/functions.js +++ b/react/features/participants-pane/functions.js @@ -62,5 +62,5 @@ const getState = state => state[REDUCER_KEY]; * @param {Object} state - Global state. * @returns {boolean} Is the participants pane open. */ -export const getParticipantsPaneOpen = state => Boolean(getState(state).isOpen); +export const getParticipantsPaneOpen = state => Boolean(getState(state)?.isOpen);