diff --git a/presenter/src/components/language/LanguageSelector.vue b/presenter/src/components/language/LanguageSelector.vue index 8e8c099d0c..5010a5924a 100644 --- a/presenter/src/components/language/LanguageSelector.vue +++ b/presenter/src/components/language/LanguageSelector.vue @@ -38,7 +38,7 @@ const languages = ref(localizedLocale) const pageContext = usePageContext() -if (pageContext.locale !== undefined && locales.includes(pageContext.locale)) { +if (pageContext.locale && locales.includes(pageContext.locale)) { i18n.global.locale.value = pageContext.locale }