Skip to content

Commit

Permalink
refactor: simplify expression
Browse files Browse the repository at this point in the history
  • Loading branch information
alfetopito committed Oct 8, 2024
1 parent 5a3353d commit d6376b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ async function pollContractForEvents(
event.topics
) as unknown as ConditionalOrderCreatedEvent;

if (addresses ? addresses.includes(decoded.args.owner) : true) {
if (!addresses || addresses.includes(decoded.args.owner)) {
acc.push({
...decoded,
...event,
Expand Down

0 comments on commit d6376b9

Please sign in to comment.