Skip to content

Commit

Permalink
Fix variable shadowing in getDelegations (#1644)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdqst authored Dec 2, 2024
1 parent 4a23f6a commit 84e5e8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/delegation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const DELEGATION_DATA_CACHE = {};

// delegations with overrides
export async function getDelegations(space, network, addresses, snapshot) {
const addressesLc = addresses.map((addresses) => addresses.toLowerCase());
const addressesLc = addresses.map((address) => address.toLowerCase());
const delegatesBySpace = await getDelegatesBySpace(network, space, snapshot);

const delegations = delegatesBySpace.filter(
Expand Down

0 comments on commit 84e5e8b

Please sign in to comment.