From 2c39388be876baa7b1c48e9bc484fa576638664d Mon Sep 17 00:00:00 2001 From: Barry Gitarts Date: Tue, 18 Jun 2019 12:28:50 -0400 Subject: [PATCH] fix incomplete loop not populating delegates for pledge --- src/utils/pledges.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/pledges.js b/src/utils/pledges.js index da5fe7b..8d4af57 100644 --- a/src/utils/pledges.js +++ b/src/utils/pledges.js @@ -8,7 +8,7 @@ const getPledgeDelegates = (idPledge, numDelegates) => { const delegates = [] const num = Number(numDelegates) if (!num) return delegates - for (let i = 1; i < num; i++) { + for (let i = 1; i <= num; i++) { delegates.push(getPledgeDelegate(idPledge, i).call()) } return Promise.all(delegates)