fix locale being empty string (#1112)
This commit is contained in:
		
							parent
							
								
									6318972aa1
								
							
						
					
					
						commit
						d4b70162e8
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -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, | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Alex Johansson
						Alex Johansson