fix: don't try to load a langauge if there's none provided
All checks were successful
continuous-integration/drone/pr Build is passing

This commit is contained in:
kolaente 2022-02-05 21:41:22 +01:00
parent ecf679d8e1
commit 210a78be86
Signed by: konrad
GPG Key ID: F40E70337AB24C9B

View File

@ -30,6 +30,10 @@ const setI18nLanguage = lang => {
} }
export const loadLanguageAsync = lang => { export const loadLanguageAsync = lang => {
if(!lang) {
return
}
if ( if (
// If the same language // If the same language
i18n.global.locale === lang || i18n.global.locale === lang ||