fix incomplete loop not populating delegates for pledge

This commit is contained in:
Barry Gitarts 2019-06-18 12:28:50 -04:00
parent 0732600441
commit 2c39388be8
1 changed files with 1 additions and 1 deletions

View File

@ -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)