Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
fix(gql): fix query param to allow 0 to be provided as blockHeight
Browse files Browse the repository at this point in the history
  • Loading branch information
dtfiedler committed Nov 28, 2023
1 parent 44fa04b commit fc3759e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/api/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: `
Expand Down

0 comments on commit fc3759e

Please sign in to comment.