Skip to content

Commit

Permalink
feat: check current user id
Browse files Browse the repository at this point in the history
  • Loading branch information
mixhsnhd committed Jan 6, 2025
1 parent 474c173 commit cc8f7be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/EoaServer.Application/UserAssets/UserAssetsAppService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,10 @@ private async Task<GetTokenDto> ConvertDtoAsync(GetAddressTokenListResultDto fro

private async Task AddUserTokensAsync(GetAddressTokenListResultDto tokensResultDto)
{
if (!CurrentUser.Id.HasValue)
{
return;
}
var userId = CurrentUser.GetId();
var userTokens =
await _userTokenProvider.GetUserTokenInfoListAsync(userId, string.Empty, string.Empty);
Expand Down

0 comments on commit cc8f7be

Please sign in to comment.