diff --git a/src/utils/functions.js b/src/utils/functions.js index b09c0e806..6d75612c4 100644 --- a/src/utils/functions.js +++ b/src/utils/functions.js @@ -77,7 +77,7 @@ export function getLang(weblang) { } export function getYTLangFromState(state) { - const lang = state.settings.lang; + const { lang } = state.settings; return langConversion[lang] || lang.split("-")[0].toLowerCase(); }