From f238fe632221c268a55cad81d3adbbc0a1a5888b Mon Sep 17 00:00:00 2001
From: Theo Butler <theodusbutler@gmail.com>
Date: Thu, 29 Feb 2024 10:00:24 -0500
Subject: [PATCH] bugfix

---
 packages/indexer-service/src/allocations.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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)