diff --git a/src/api/graphql.ts b/src/api/graphql.ts index 45773dc..3e70459 100644 --- a/src/api/graphql.ts +++ b/src/api/graphql.ts @@ -123,9 +123,10 @@ export async function getWalletInteractionsForContract( >(); do { const ownerFilter = address ? `owners: ["${address}"]` : ''; - const blockHeightFilter = blockHeight - ? `block: { min: 0 max: ${blockHeight} }` - : ''; + const blockHeightFilter = + blockHeight !== null && blockHeight !== undefined + ? `block: { min: 0 max: ${blockHeight} }` + : ''; const queryObject = { query: `