fix incomplete loop not populating delegates for pledge
This commit is contained in:
parent
0732600441
commit
2c39388be8
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue