From eb63dd5abd195f6b0a6999d9d9f411e6f7c283fd Mon Sep 17 00:00:00 2001 From: schwartz-concordium <132270889+schwartz-concordium@users.noreply.github.com> Date: Wed, 29 Nov 2023 17:44:07 +0100 Subject: [PATCH] Fix bugs --- .../Application/Api/GraphQL/Bakers/BakersQuery.cs | 4 ++-- .../components/Accounts/AccountDetailsBaker.vue | 2 +- frontend/src/utils/translateTransactionTypes.ts | 14 +++++++------- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/backend/Application/Api/GraphQL/Bakers/BakersQuery.cs b/backend/Application/Api/GraphQL/Bakers/BakersQuery.cs index 886b157de..6964417b7 100644 --- a/backend/Application/Api/GraphQL/Bakers/BakersQuery.cs +++ b/backend/Application/Api/GraphQL/Bakers/BakersQuery.cs @@ -61,8 +61,8 @@ public IQueryable GetBakers( BakerSort.DelegatorCountDesc => result.OrderBy(x => x.ActiveState.Pool.DelegatorCount == null).ThenByDescending(x => x.ActiveState!.Pool!.DelegatorCount), BakerSort.BakerApy30DaysDesc => result.OrderBy(x => x.RemovedState.RemovedAt != null).ThenBy(x => x.PoolApys.Apy30Days.BakerApy == null).ThenByDescending(x => x.PoolApys!.Apy30Days.BakerApy), BakerSort.DelegatorApy30DaysDesc => result.OrderBy(x => x.RemovedState.RemovedAt != null).ThenBy(x => x.PoolApys.Apy30Days.DelegatorsApy == null).ThenByDescending(x => x.PoolApys!.Apy30Days.DelegatorsApy), - BakerSort.BlockCommissionsAsc => result.OrderBy(x => x.ActiveState!.Pool!.CommissionRates.BakingCommission), - BakerSort.BlockCommissionsDesc => result.OrderByDescending(x => x.ActiveState!.Pool!.CommissionRates.BakingCommission), + BakerSort.BlockCommissionsAsc => result.OrderBy(x => x.ActiveState!.Pool!.PaydayStatus.CommissionRates.BakingCommission != null).ThenBy(x => x.ActiveState!.Pool!.PaydayStatus.CommissionRates.BakingCommission), + BakerSort.BlockCommissionsDesc => result.OrderByDescending(x => x.ActiveState!.Pool!.PaydayStatus.CommissionRates.BakingCommission != null).ThenByDescending(x => x.ActiveState!.Pool!.PaydayStatus.CommissionRates.BakingCommission), _ => throw new NotImplementedException() }; diff --git a/frontend/src/components/Accounts/AccountDetailsBaker.vue b/frontend/src/components/Accounts/AccountDetailsBaker.vue index 0528ebbcb..4263aae5d 100644 --- a/frontend/src/components/Accounts/AccountDetailsBaker.vue +++ b/frontend/src/components/Accounts/AccountDetailsBaker.vue @@ -1,6 +1,6 @@