Skip to content

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

cc: fix showing CC button if config option is undefined

Saúl Ibarra Corretgéf9b3d470e990
diff --git a/react/features/subtitles/components/AbstractClosedCaptionButton.js b/react/features/subtitles/components/AbstractClosedCaptionButton.js
index c76afeacd1..e57af21808 100644
--- a/react/features/subtitles/components/AbstractClosedCaptionButton.js
+++ b/react/features/subtitles/components/AbstractClosedCaptionButton.js
@@ -85,7 +85,7 @@ export class AbstractClosedCaptionButton
export function _abstractMapStateToProps(state: Object, ownProps: Object) {
const { _requestingSubtitles } = state['features/subtitles'];
const { transcribingEnabled } = state['features/base/config'];
- const { visible = transcribingEnabled } = ownProps;
+ const { visible = Boolean(transcribingEnabled) } = ownProps;
return {
_requestingSubtitles,