Skip to content

Commit

Permalink
fix: Account for rehydrated old users before language
Browse files Browse the repository at this point in the history
  • Loading branch information
tommoor committed Jan 18, 2021
1 parent afcce7a commit 27fca28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/hooks/useUserLocale.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import useStores from "./useStores";
export default function useUserLocale() {
const { auth } = useStores();

if (!auth.user) {
if (!auth.user || !auth.user.language) {
return undefined;
}

Expand Down

0 comments on commit 27fca28

Please sign in to comment.