Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(participants-pane): Consider reducer/state being unavailable on native

Gabriel Imre20a62e5eb42a
diff --git a/react/features/participants-pane/functions.js b/react/features/participants-pane/functions.js
index 5dfed11bf1..bced1dacb1 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);