fix(hide-buttons-on-jwt) Fix getting disabled buttons (#12326)

This commit is contained in:
Horatiu Muresan 2022-10-06 18:01:53 +03:00 committed by GitHub
parent 5c2ec5df54
commit 02da4a1c42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ export function isAudioMuteButtonDisabled(state: IState) {
export function getJwtDisabledButtons(state: IState) { export function getJwtDisabledButtons(state: IState) {
return Object.keys(FEATURES_TO_BUTTONS_MAPPING).reduce((acc: string[], current: string) => { return Object.keys(FEATURES_TO_BUTTONS_MAPPING).reduce((acc: string[], current: string) => {
if (!isJwtFeatureEnabled(state, current, true)) { if (!isJwtFeatureEnabled(state, current, true)) {
acc.push(current); acc.push(FEATURES_TO_BUTTONS_MAPPING[current as keyof typeof FEATURES_TO_BUTTONS_MAPPING]);
} }
return acc; return acc;