From 20a62e5eb42a7224c3d36dd2f8f644a3f2581e77 Mon Sep 17 00:00:00 2001 From: Gabriel Imre Date: Thu, 22 Apr 2021 14:53:08 +0300 Subject: [PATCH] fix(participants-pane): Consider reducer/state being unavailable on native --- react/features/participants-pane/functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);