From 11fa77f0ca38a448b3d108ca7bf8599cc733bd56 Mon Sep 17 00:00:00 2001 From: UK <41271523+NeloBlivion@users.noreply.github.com> Date: Tue, 14 Nov 2023 12:45:57 +0000 Subject: [PATCH] Update src/utils/functions.js Co-authored-by: Livia Medeiros --- src/utils/functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }