From 93da516ad309c7863d66c75af5f6bc51a9cf550b Mon Sep 17 00:00:00 2001 From: Chaitanya Date: Tue, 26 Nov 2024 21:54:24 +0530 Subject: [PATCH] fix: consider all delegation strategies (#4938) --- src/views/DelegateView.vue | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/views/DelegateView.vue b/src/views/DelegateView.vue index 49a65124f81..a9e09b428f4 100644 --- a/src/views/DelegateView.vue +++ b/src/views/DelegateView.vue @@ -171,11 +171,13 @@ async function getDelegatesWithScore() { ); uniqueDelegators.forEach(delegate => { - const delegationScore = scores[0]; - Object.entries(delegationScore).forEach(([address, score]) => { - if (address === delegate.delegate) { - delegate.score = score; - } + delegate.score = 0; + scores.forEach(delegationScore => { + Object.entries(delegationScore).forEach(([address, score]) => { + if (address === delegate.delegate) { + delegate.score += score; + } + }); }); });