From ea5efdf203a295ad82895b3301f6903789da39c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=20Keskim=C3=A4ki?= Date: Thu, 9 Mar 2023 14:10:39 +0200 Subject: [PATCH] Don't use user's preffered language in production --- src/client/components/NavBar/NavBar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/components/NavBar/NavBar.tsx b/src/client/components/NavBar/NavBar.tsx index ba7ef628..57a9430d 100644 --- a/src/client/components/NavBar/NavBar.tsx +++ b/src/client/components/NavBar/NavBar.tsx @@ -30,7 +30,7 @@ const NavBar = () => { const { user, isLoading } = useLoggedInUser() useEffect(() => { - if (user?.language) { + if (!inProduction && user?.language) { i18n.changeLanguage(user.language) } }, [user, i18n])