Skip to content

Commit

Permalink
Merge pull request #47 from Alper-Soy/develop
Browse files Browse the repository at this point in the history
Prod - 09/10/2024 - 2
  • Loading branch information
Alper-Soy authored Sep 9, 2024
2 parents e394096 + 6cf42cf commit cfaa0c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion API/Controllers/AccountController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ private AuthUserDto CreateUserObject(AppUser appUser)
return new AuthUserDto
{
DisplayName = appUser.DisplayName,
Image = appUser.Photos.FirstOrDefault(x => x.IsMain)?.Url,
Image = appUser.Photos?.FirstOrDefault(x => x.IsMain)?.Url,
Token = tokenService.CreateToken(appUser),
Username = appUser.UserName
};
Expand Down

0 comments on commit cfaa0c4

Please sign in to comment.