diff --git a/app/components/Authenticated.js b/app/components/Authenticated.js index cba8b62b5..86b43ef51 100644 --- a/app/components/Authenticated.js +++ b/app/components/Authenticated.js @@ -20,7 +20,7 @@ const Authenticated = ({ children }: Props) => { // Watching for language changes here as this is the earliest point we have // the user available and means we can start loading translations faster React.useEffect(() => { - if (i18n.language !== language) { + if (language && i18n.language !== language) { // Languages are stored in en_US format in the database, however the // frontend translation framework (i18next) expects en-US i18n.changeLanguage(language.replace("_", "-"));