From 02da4a1c426b0af5235ad4316b4537a0ca3bed21 Mon Sep 17 00:00:00 2001 From: Horatiu Muresan <39557534+horymury@users.noreply.github.com> Date: Thu, 6 Oct 2022 18:01:53 +0300 Subject: [PATCH] fix(hide-buttons-on-jwt) Fix getting disabled buttons (#12326) --- react/features/toolbox/functions.any.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/features/toolbox/functions.any.ts b/react/features/toolbox/functions.any.ts index 1b4e4f38b2..949adc73e5 100644 --- a/react/features/toolbox/functions.any.ts +++ b/react/features/toolbox/functions.any.ts @@ -24,7 +24,7 @@ export function isAudioMuteButtonDisabled(state: IState) { export function getJwtDisabledButtons(state: IState) { return Object.keys(FEATURES_TO_BUTTONS_MAPPING).reduce((acc: string[], current: string) => { if (!isJwtFeatureEnabled(state, current, true)) { - acc.push(current); + acc.push(FEATURES_TO_BUTTONS_MAPPING[current as keyof typeof FEATURES_TO_BUTTONS_MAPPING]); } return acc;