diff --git a/Tzkt.Api/Repositories/AccountRepository.Bakers.cs b/Tzkt.Api/Repositories/AccountRepository.Bakers.cs index 8c12638c..437ae43f 100644 --- a/Tzkt.Api/Repositories/AccountRepository.Bakers.cs +++ b/Tzkt.Api/Repositories/AccountRepository.Bakers.cs @@ -154,7 +154,7 @@ public async Task GetDelegatesCount(BoolParameter active) StakedBalance = row.StakedBalance, StakedPseudotokens = row.StakedPseudotokens, UnstakedBalance = row.UnstakedBalance, - UnstakedBaker = row.UnstakedBakerId == null ? null : Accounts.GetAlias(row.UnstakedBakerId.Value), + UnstakedBaker = row.UnstakedBakerId == null ? null : Accounts.GetAlias(row.UnstakedBakerId), TotalStakedBalance = row.TotalStakedBalance, ExternalStakedBalance = row.ExternalStakedBalance, ExternalUnstakedBalance = row.ExternalUnstakedBalance,