Skip to content

Commit

Permalink
Fix duplicate search results
Browse files Browse the repository at this point in the history
  • Loading branch information
KeeJef committed Apr 26, 2022
1 parent 735f7a3 commit 4dabd8b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/composables/arweaveFunctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,10 @@ export async function searchTx(searchPhrase) {

for (let index = 0; index < res.data.data.transactions.edges.length; index++) {
const element = res.data.data.transactions.edges[index].node.id;
txidArray.push(element)
//if the element is not in txidArray, add it
if (txidArray.indexOf(element) == -1) {
txidArray.push(element)
}
}

return txidArray;
Expand Down

0 comments on commit 4dabd8b

Please sign in to comment.