From f9b3d470e990138a7bded4fc7cadd19ca849ec5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Mon, 29 Apr 2019 22:11:08 +0200 Subject: [PATCH] cc: fix showing CC button if config option is undefined --- .../subtitles/components/AbstractClosedCaptionButton.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/features/subtitles/components/AbstractClosedCaptionButton.js b/react/features/subtitles/components/AbstractClosedCaptionButton.js index c76afeacd..e57af2180 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,