diff --git a/packages/indexer-service/src/allocations.ts b/packages/indexer-service/src/allocations.ts index 737df59dc..452c9e5b2 100644 --- a/packages/indexer-service/src/allocations.ts +++ b/packages/indexer-service/src/allocations.ts @@ -103,7 +103,7 @@ export const monitorEligibleAllocations = ({ if (result.error) { throw result.error } - if (result.data.length == 0) { + if (result.data.allocations.length == 0) { break } activeAllocations.push(result.data.allocations) @@ -154,7 +154,7 @@ export const monitorEligibleAllocations = ({ if (result.error) { throw result.error } - if (result.data.length == 0) { + if (result.data.allocations.length == 0) { break } recentlyClosedAllocations.push(result.data.allocations)