Skip to content

Commit

Permalink
chore: lint..
Browse files Browse the repository at this point in the history
  • Loading branch information
ppedziwiatr committed Nov 30, 2023
1 parent 1a4cc94 commit 9a5776e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/modules/impl/ArweaveGatewayInteractionsLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,12 @@ export class ArweaveGatewayInteractionsLoader implements InteractionsLoader {
* - we're removing all the interactions, that have null block data.
*/
interactions = interactions.filter((i) => i.node.block && i.node.block.id && i.node.block.height);
// deduplicate any interactions that may have been provided twice
// deduplicate any interactions that may have been provided twice
const interactionMap = new Map();
for (const interaction of interactions) {
if (!interactionMap.has(interaction.node.id)) {
interactionMap.set(interaction.node.id, interaction);
}
if (!interactionMap.has(interaction.node.id)) {
interactionMap.set(interaction.node.id, interaction);
}
}
const deduplicatedInteractions = Array.from(interactionMap.values());

Expand Down

0 comments on commit 9a5776e

Please sign in to comment.