fix locale being empty string (#1112)

pull/1105/head^2
Alex Johansson 2021-11-02 17:09:22 +00:00 committed by GitHub
parent 6318972aa1
commit d4b70162e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ async function getUserFromSession({
}
const avatar = user.avatar || defaultAvatarSrc({ email });
const locale = user.locale ?? getLocaleFromHeaders(req);
const locale = user.locale || getLocaleFromHeaders(req);
return {
...user,
avatar,