From 247601ad3d7769213e59cfb7925f6f4e5d07fa97 Mon Sep 17 00:00:00 2001 From: Ramon Souza Date: Fri, 28 May 2021 17:16:35 -0300 Subject: [PATCH] fix captions button crash --- .../components/user-list/captions-list-item/component.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bigbluebutton-html5/imports/ui/components/user-list/captions-list-item/component.jsx b/bigbluebutton-html5/imports/ui/components/user-list/captions-list-item/component.jsx index 4bd16040b6..f422858e50 100644 --- a/bigbluebutton-html5/imports/ui/components/user-list/captions-list-item/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/user-list/captions-list-item/component.jsx @@ -33,7 +33,7 @@ const CaptionsListItem = (props) => { const handleClickToggleCaptions = () => { if (sidebarContentPanel !== PANELS.CAPTIONS) { - Session.set('captionsLocale', locale); + Session.set('captionsLocale', locale.locale); newLayoutContextDispatch({ type: ACTIONS.SET_SIDEBAR_CONTENT_IS_OPEN, value: true, @@ -44,8 +44,8 @@ const CaptionsListItem = (props) => { }); } else { const captionsLocale = Session.get('captionsLocale'); - if (captionsLocale !== locale) { - Session.set('captionsLocale', locale); + if (captionsLocale !== locale.locale) { + Session.set('captionsLocale', locale.locale); } else { newLayoutContextDispatch({ type: ACTIONS.SET_SIDEBAR_CONTENT_IS_OPEN,