diff --git a/src/connectors/kujira/kujira.ts b/src/connectors/kujira/kujira.ts index 1745302aa0..cc1774a99a 100644 --- a/src/connectors/kujira/kujira.ts +++ b/src/connectors/kujira/kujira.ts @@ -1305,9 +1305,9 @@ export class Kujira { let partialResponse: JsonObject; while ( - (!partialResponse || - partialResponse.orders.length >= - KujiraConfig.config.orders.open.paginationLimit) && + partialResponse && + partialResponse.orders.length >= + KujiraConfig.config.orders.open.paginationLimit && response.orders.length <= KujiraConfig.config.orders.open.limit ) { partialResponse = await this.kujiraQueryClientWasmQueryContractSmart(