Skip to content

Commit

Permalink
fix: filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarsen136 committed Jul 23, 2024
1 parent 14f2121 commit 4afc2aa
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions components/drops/useDrops.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,9 @@ export function useDrops(query?: GetDropsQuery, config?: { filterOutMinted?: boo
onBeforeMount(async () => {
dropsList.value = await getDrops(query)

const formattedDrops = await Promise.all(
drops.value = await Promise.all(
dropsList.value.map(async drop => getFormattedDropItem(drop, drop)),
)

drops.value = formattedDrops

if (filterOutMinted) {
drops.value = drops.value.filter(drop => !drop.isMintedOut)
}
).then(dropsList => filterOutMinted ? dropsList.filter(drop => !drop.isMintedOut) : dropsList)

loaded.value = true
})
Expand Down

0 comments on commit 4afc2aa

Please sign in to comment.