diff --git a/packages/stargate/src/stargateclient.ts b/packages/stargate/src/stargateclient.ts index 5e4d1aee..0f259f3c 100644 --- a/packages/stargate/src/stargateclient.ts +++ b/packages/stargate/src/stargateclient.ts @@ -285,7 +285,7 @@ export class StargateClient { const loadedDelegations = delegationResponses || []; allDelegations.push(...loadedDelegations); startAtKey = pagination?.nextKey; - } while (startAtKey?.length !== 0 && startAtKey !== undefined); + } while (startAtKey !== undefined && startAtKey.length !== 0); const sumValues = allDelegations.reduce( (previousValue: Coin | null, currentValue: DelegationResponse): Coin => {