Skip to content

Commit

Permalink
Don't use user's preffered language in production
Browse files Browse the repository at this point in the history
  • Loading branch information
Keskimaki committed Mar 9, 2023
1 parent 866bb03 commit ea5efdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/components/NavBar/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const NavBar = () => {
const { user, isLoading } = useLoggedInUser()

useEffect(() => {
if (user?.language) {
if (!inProduction && user?.language) {
i18n.changeLanguage(user.language)
}
}, [user, i18n])
Expand Down

0 comments on commit ea5efdf

Please sign in to comment.