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

This commit is contained in:
Gabriel Imre 2021-04-22 14:53:08 +03:00 committed by Saúl Ibarra Corretgé
parent 77890fc27a
commit 20a62e5eb4
1 changed files with 1 additions and 1 deletions

View File

@ -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);