Skip to content

Commit

Permalink
fix: Resolving problem with lookupAssetHoldings not applying falsy op…
Browse files Browse the repository at this point in the history
…tions
  • Loading branch information
robdmoore committed Apr 20, 2024
1 parent 5c23e1a commit b765d3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/indexer-lookup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@ export async function lookupAssetHoldings(
},
(nextToken) => {
let s = indexer.lookupAssetBalances(Number(assetId)).limit(paginationLimit ?? DEFAULT_INDEXER_MAX_API_RESOURCES_PER_ACCOUNT)
if (options?.currencyGreaterThan) {
if (options?.currencyGreaterThan !== undefined) {
s = s.currencyGreaterThan(options.currencyGreaterThan)
}
if (options?.currencyLessThan) {
if (options?.currencyLessThan !== undefined) {
s = s.currencyLessThan(options.currencyLessThan)
}
if (options?.includeAll) {
if (options?.includeAll !== undefined) {
s = s.includeAll(options.includeAll)
}
if (nextToken) {
Expand Down

0 comments on commit b765d3c

Please sign in to comment.