From cee700ca9c0ea2d7c71c829c8a184149d5dd9174 Mon Sep 17 00:00:00 2001 From: ChaituVR Date: Tue, 26 Nov 2024 20:58:03 +0530 Subject: [PATCH] fix: consider all delegation strategies --- 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 49a65124f812..a9e09b428f49 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; + } + }); }); });